Rover: Fix motor_active check to checkout throttle output servo

This commit is contained in:
Grant Morphett 2017-03-15 11:56:33 +11:00
parent 91269f2126
commit ebedc8b01e

View File

@ -117,9 +117,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 (channel_throttle->get_servo_out() != channel_throttle->get_radio_trim()) { if (channel_throttle->get_servo_out() != 0) {
return true; return true;
} }
} }