mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 23:28:32 -04:00
73bdc3be09
or if throttle is positive and desired speed over 0.5m/s
13 lines
335 B
C++
13 lines
335 B
C++
#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);
|
|
}
|