FlightTask: apply gear switch depending on task

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent c637ccb65f
commit 547cdc051c
6 changed files with 52 additions and 5 deletions
@@ -63,9 +63,11 @@ protected:
matrix::Vector3f _sticks_expo; /**< modified manual sticks using expo function*/
float stickDeadzone() const { return _stick_dz.get(); }
private:
bool _evaluateSticks(); /**< checks and sets stick inputs */
void _applyGearSwitch(uint8_t gswitch); /**< Sets gears according to switch */
uORB::Subscription<manual_control_setpoint_s> *_sub_manual_control_setpoint{nullptr};