Rover: Fix motor_active check to checkout throttle output servo
This commit is contained in:
parent
2ef6473816
commit
3410db5022
@ -138,9 +138,9 @@ void Rover::read_trim_switch()
|
|||||||
|
|
||||||
bool Rover::motor_active()
|
bool Rover::motor_active()
|
||||||
{
|
{
|
||||||
// Check if armed and throttle is not neutral
|
// Check if armed and output throttle servo is not neutral
|
||||||
if (hal.util->get_soft_armed()) {
|
if (hal.util->get_soft_armed()) {
|
||||||
if (SRV_Channels::get_output_scaled(SRV_Channel::k_throttle) != channel_throttle->get_radio_trim()) {
|
if (SRV_Channels::get_output_scaled(SRV_Channel::k_throttle) != 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user