ardupilot/APMrover2/mode_hold.cpp
Randy Mackay 73bdc3be09 Rover: set ahrs flyforward if thr over 15% for 2 seconds
or if throttle is positive and desired speed over 0.5m/s
2018-05-29 16:37:31 +09:00

10 lines
189 B
C++

#include "mode.h"
#include "Rover.h"
void ModeHold::update()
{
// hold position - stop motors and center steering
g2.motors.set_throttle(0.0f);
g2.motors.set_steering(0.0f);
}