@ -52,10 +52,17 @@ public:
bool activate ( const vehicle_local_position_setpoint_s & last_setpoint ) override ;
bool activate ( const vehicle_local_position_setpoint_s & last_setpoint ) override ;
bool update ( ) override ;
bool update ( ) override ;
/**
* Sets an external yaw handler which can be used to implement a different yaw control strategy .
*/
void setYawHandler ( WeatherVane * yaw_handler ) override { _weathervane_yaw_handler = yaw_handler ; }
private :
private :
StickAccelerationXY _stick_acceleration_xy ;
StickAccelerationXY _stick_acceleration_xy ;
StickYaw _stick_yaw ;
StickYaw _stick_yaw ;
void _ekfResetHandlerPositionXY ( ) override ;
void _ekfResetHandlerPositionXY ( ) override ;
void _ekfResetHandlerVelocityXY ( ) override ;
void _ekfResetHandlerVelocityXY ( ) override ;
WeatherVane * _weathervane_yaw_handler { nullptr } ; /**< external weathervane library, used to implement a yaw control law that turns the vehicle nose into the wind */
} ;
} ;