Ardupilot2/APMrover2/mode_manual.cpp

10 lines
222 B
C++
Raw Normal View History

2017-07-18 23:17:45 -03:00
#include "mode.h"
#include "Rover.h"
void ModeManual::update()
{
// mark us as in_reverse when using a negative throttle to
// stop AHRS getting off
rover.set_reverse(is_negative(g2.motors.get_throttle()));
}