ardupilot/APMrover2/mode_hold.cpp

13 lines
252 B
C++
Raw Normal View History

2017-07-18 23:17:45 -03:00
#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);
2017-08-03 03:19:57 -03:00
// hold mode never reverses
rover.set_reverse(false);
2017-07-18 23:17:45 -03:00
}