static void SettingsUpdatedCb(UAVObjEvent * ev) { if (ev == NULL || ev->obj == FixedWingPathFollowerSettingsHandle()) FixedWingPathFollowerSettingsGet(&fixedwingpathfollowerSettings); if (ev == NULL || ev->obj == FixedWingAirspeedsHandle()) FixedWingAirspeedsGet(&fixedWingAirspeeds); }
void FixedWingPathFollowerSettingsUpdatePeriodGet( int16_t *NewUpdatePeriod ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewUpdatePeriod, offsetof( FixedWingPathFollowerSettingsData, UpdatePeriod), sizeof(int16_t)); }
void FixedWingPathFollowerSettingsThrottleLimitGet( float *NewThrottleLimit ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewThrottleLimit, offsetof( FixedWingPathFollowerSettingsData, ThrottleLimit), 3*sizeof(float)); }
void FixedWingPathFollowerSettingsOrbitRadiusGet( float *NewOrbitRadius ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewOrbitRadius, offsetof( FixedWingPathFollowerSettingsData, OrbitRadius), sizeof(float)); }
void FixedWingPathFollowerSettingsSpeedPIGet( float *NewSpeedPI ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewSpeedPI, offsetof( FixedWingPathFollowerSettingsData, SpeedPI), 3*sizeof(float)); }
void FixedWingPathFollowerSettingsPitchLimitSet( float *NewPitchLimit ) { UAVObjSetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewPitchLimit, offsetof( FixedWingPathFollowerSettingsData, PitchLimit), 3*sizeof(float)); }
void FixedWingPathFollowerSettingsAirspeedToVerticalCrossFeedGet( float *NewAirspeedToVerticalCrossFeed ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewAirspeedToVerticalCrossFeed, offsetof( FixedWingPathFollowerSettingsData, AirspeedToVerticalCrossFeed), 2*sizeof(float)); }
void FixedWingPathFollowerSettingsVerticalToPitchCrossFeedGet( float *NewVerticalToPitchCrossFeed ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewVerticalToPitchCrossFeed, offsetof( FixedWingPathFollowerSettingsData, VerticalToPitchCrossFeed), 2*sizeof(float)); }
void FixedWingPathFollowerSettingsPowerPISet( float *NewPowerPI ) { UAVObjSetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewPowerPI, offsetof( FixedWingPathFollowerSettingsData, PowerPI), 3*sizeof(float)); }
void FixedWingPathFollowerSettingsVerticalPosPGet( float *NewVerticalPosP ) { UAVObjGetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewVerticalPosP, offsetof( FixedWingPathFollowerSettingsData, VerticalPosP), sizeof(float)); }
/** * Get/Set object Functions */ void FixedWingPathFollowerSettingsHorizontalPosPSet( float *NewHorizontalPosP ) { UAVObjSetDataField(FixedWingPathFollowerSettingsHandle(), (void*)NewHorizontalPosP, offsetof( FixedWingPathFollowerSettingsData, HorizontalPosP), sizeof(float)); }