Skip to content

Commit

Permalink
Rover: Initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura authored and rmackay9 committed May 13, 2024
1 parent fbb7858 commit 3f88a5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Rover/Steering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ void Rover::set_servos(void)
motor_test_output();
} else {
// get ground speed
float speed;
if (!g2.attitude_control.get_forward_speed(speed)) {
speed = 0.0f;
}
float speed = 0.0f;
g2.attitude_control.get_forward_speed(speed);

g2.motors.output(arming.is_armed(), speed, G_Dt);
}
Expand Down

0 comments on commit 3f88a5e

Please sign in to comment.