Skip to content

Commit

Permalink
Plane: used standard code style for initialising local floats and bools
Browse files Browse the repository at this point in the history
Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Mar 13, 2024
1 parent 1adc48d commit 159c9f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduPlane/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ void GCS_MAVLINK_Plane::handle_set_position_target_global_int(const mavlink_mess
const Vector2f accel{pos_target.afx, pos_target.afy};
Vector2f unit_vel;

float path_curvature{0.0};
bool dir_is_ccw{false};
float path_curvature = 0.0;
bool dir_is_ccw = false;

if (!vel.is_zero()) {
unit_vel = vel.normalized();
Expand Down

0 comments on commit 159c9f3

Please sign in to comment.