Copter: enable landing gear based on RC output
previously it was enabled based on the transmitter's auxiliary switch being setup
This commit is contained in:
parent
5b8e7cfdf9
commit
c3fd354452
@ -4,8 +4,8 @@
|
|||||||
// Run landing gear controller at 10Hz
|
// Run landing gear controller at 10Hz
|
||||||
void Copter::landinggear_update()
|
void Copter::landinggear_update()
|
||||||
{
|
{
|
||||||
// exit immediately if no landing gear switch is enabled
|
// exit immediately if no landing gear output has been enabled
|
||||||
if (!check_if_auxsw_mode_used(AUXSW_LANDING_GEAR)) {
|
if (!SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user