mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
13 lines
252 B
C++
13 lines
252 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);
|
|
|
|
// hold mode never reverses
|
|
rover.set_reverse(false);
|
|
}
|