CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Rover/Steering.cpp
Views: 1798
1
#include "Rover.h"
2
3
/*****************************************
4
Set the flight control servos based on the current calculated values
5
*****************************************/
6
void Rover::set_servos(void)
7
{
8
// send output signals to motors
9
if (motor_test) {
10
motor_test_output();
11
} else {
12
// get ground speed
13
float speed = 0.0f;
14
g2.attitude_control.get_forward_speed(speed);
15
16
g2.motors.output(arming.is_armed(), speed, G_Dt);
17
}
18
}
19
20