Browse Source

Rover: only mode manual directly copies rc input to motors

master
Randy Mackay 8 years ago
parent
commit
6626c2e12e
  1. 7
      APMrover2/mode_manual.cpp
  2. 4
      APMrover2/radio.cpp

7
APMrover2/mode_manual.cpp

@ -3,7 +3,10 @@ @@ -3,7 +3,10 @@
void ModeManual::update()
{
// mark us as in_reverse when using a negative throttle to
// stop AHRS getting off
// copy RC scaled inputs to outputs
g2.motors.set_throttle(channel_throttle->get_control_in());
g2.motors.set_steering(channel_steer->get_control_in());
// mark us as in_reverse when using a negative throttle to stop AHRS getting off
rover.set_reverse(is_negative(g2.motors.get_throttle()));
}

4
APMrover2/radio.cpp

@ -152,10 +152,6 @@ void Rover::read_radio() @@ -152,10 +152,6 @@ void Rover::read_radio()
channel_throttle->set_pwm(thr);
}
// copy RC scaled inputs to outputs
g2.motors.set_throttle(channel_throttle->get_control_in());
g2.motors.set_steering(channel_steer->get_control_in());
// check if we try to do RC arm/disarm
rudder_arm_disarm_check();
}

Loading…
Cancel
Save