mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 15:33:33 +08:00
FlightTask Manual: Gear react only on switch changes and not states
This commit is contained in:
committed by
Dennis Mannhart
parent
f4fc0cd291
commit
9ee3d79a96
@@ -59,6 +59,7 @@ protected:
|
||||
bool _sticks_data_required = true; /**< let inherited task-class define if it depends on stick data */
|
||||
matrix::Vector<float, 4> _sticks; /**< unmodified manual stick inputs */
|
||||
matrix::Vector<float, 4> _sticks_expo; /**< modified manual sticks using expo function*/
|
||||
int _gear_switch_old = manual_control_setpoint_s::SWITCH_POS_NONE; /**< old switch state*/
|
||||
|
||||
float stickDeadzone() const { return _stick_dz.get(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user