You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
524 B
21 lines
524 B
10 years ago
|
#include "Rover.h"
|
||
|
|
||
13 years ago
|
/*****************************************
|
||
9 years ago
|
Set the flight control servos based on the current calculated values
|
||
13 years ago
|
*****************************************/
|
||
8 years ago
|
void Rover::set_servos(void)
|
||
|
{
|
||
8 years ago
|
// send output signals to motors
|
||
8 years ago
|
if (motor_test) {
|
||
|
motor_test_output();
|
||
|
} else {
|
||
7 years ago
|
// 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);
|
||
8 years ago
|
}
|
||
8 years ago
|
}
|