mirror of https://github.com/ArduPilot/ardupilot
Rover: Initialize variables
This commit is contained in:
parent
fbb785859a
commit
3f88a5e749
|
@ -10,10 +10,8 @@ void Rover::set_servos(void)
|
||||||
motor_test_output();
|
motor_test_output();
|
||||||
} else {
|
} else {
|
||||||
// get ground speed
|
// get ground speed
|
||||||
float speed;
|
float speed = 0.0f;
|
||||||
if (!g2.attitude_control.get_forward_speed(speed)) {
|
g2.attitude_control.get_forward_speed(speed);
|
||||||
speed = 0.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
g2.motors.output(arming.is_armed(), speed, G_Dt);
|
g2.motors.output(arming.is_armed(), speed, G_Dt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue