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 committed by Andrew Tridgell
parent 2ef6473816
commit 3410db5022

View File

@ -138,9 +138,9 @@ void Rover::read_trim_switch()
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 (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;
}
}