You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
483 B
15 lines
483 B
#include "mode.h" |
|
#include "Rover.h" |
|
|
|
void ModeManual::update() |
|
{ |
|
float desired_steering, desired_throttle; |
|
get_pilot_desired_steering_and_throttle(desired_steering, desired_throttle); |
|
|
|
// copy RC scaled inputs to outputs |
|
g2.motors.set_throttle(desired_throttle); |
|
g2.motors.set_steering(desired_steering, false); |
|
|
|
// mark us as in_reverse when using a negative throttle to stop AHRS getting off |
|
rover.set_reverse(is_negative(g2.motors.get_throttle())); |
|
}
|
|
|