ardupilot/Rover/Steering.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
524 B
C++
Raw Normal View History

2015-05-13 00:16:45 -03:00
#include "Rover.h"
/*****************************************
Set the flight control servos based on the current calculated values
*****************************************/
void Rover::set_servos(void)
{
// send output signals to motors
2017-07-14 23:59:28 -03:00
if (motor_test) {
motor_test_output();
} else {
// get ground speed
float speed;
if (!g2.attitude_control.get_forward_speed(speed)) {
speed = 0.0f;
}
g2.motors.output(arming.is_armed(), speed, G_Dt);
2017-07-14 23:59:28 -03:00
}
}