VTOL preserve PWM min and max when enabling/disabling actuators

This commit is contained in:
Daniel Agar
2018-04-12 09:19:47 +02:00
committed by Roman Bapst
parent a78ab02144
commit 00f98c64db
8 changed files with 113 additions and 139 deletions
+3 -3
View File
@@ -98,13 +98,13 @@ private:
hrt_abstime transition_start; // at what time did we start a transition (front- or backtransition)
} _vtol_schedule;
bool _flag_enable_mc_motors;
// TODO: replace with vtol_type's flag_idle_mc
bool _flag_enable_mc_motors{true};
float _pusher_throttle;
float _reverse_output;
float _airspeed_trans_blend_margin;
void set_max_mc(unsigned pwm_value);
virtual void parameters_update();
};
#endif