FixedWingPositionControl: control only height rate when using pitch stick

in manual altitude controlled modes

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2021-06-04 14:51:27 +02:00
committed by Silvan Fuhrer
parent 3d87bfcc0a
commit f6de99d42e
2 changed files with 18 additions and 6 deletions
@@ -174,6 +174,7 @@ private:
float _global_local_alt0{NAN};
float _hold_alt{0.0f}; ///< hold altitude for altitude mode
float _manual_height_rate_setpoint_m_s{NAN};
float _takeoff_ground_alt{0.0f}; ///< ground altitude at which plane was launched
float _hdg_hold_yaw{0.0f}; ///< hold heading for velocity mode
bool _hdg_hold_enabled{false}; ///< heading hold enabled