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