Line data Source code
1 : #include "Rover.h" 2 : 3 : /***************************************** 4 : Set the flight control servos based on the current calculated values 5 : *****************************************/ 6 629048 : void Rover::set_servos(void) 7 : { 8 : // send output signals to motors 9 629048 : if (motor_test) { 10 250 : motor_test_output(); 11 : } else { 12 : // get ground speed 13 628798 : float speed = 0.0f; 14 628798 : g2.attitude_control.get_forward_speed(speed); 15 : 16 628798 : g2.motors.output(arming.is_armed(), speed, G_Dt); 17 : } 18 629048 : }