mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-31 04:58:30 -04:00
AC_WPNav: method to retrieve current desired pilot accels
This commit is contained in:
parent
cb1a5d4c74
commit
1eca4e128d
@ -84,7 +84,9 @@ public:
|
||||
|
||||
/// set_pilot_desired_acceleration - sets pilot desired acceleration from roll and pitch stick input
|
||||
void set_pilot_desired_acceleration(float control_roll, float control_pitch);
|
||||
|
||||
/// get_pilot_desired_acceleration - gets pilot desired
|
||||
/// acceleration, body frame, [forward,right]
|
||||
Vector2f get_pilot_desired_acceleration() const { return Vector2f(_pilot_accel_fwd_cms, _pilot_accel_rgt_cms); }
|
||||
/// clear_pilot_desired_acceleration - clear pilot desired acceleration
|
||||
void clear_pilot_desired_acceleration() { _pilot_accel_fwd_cms = 0.0f; _pilot_accel_rgt_cms = 0.0f; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user