Skip to content

Commit

Permalink
Fix yet another CopyPaste Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
menschel committed Oct 31, 2024
1 parent 75cfda3 commit dca1564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_L1_Control/AP_L1_Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ float AP_L1_Control::turn_distance(float wp_radius) const

float seconds_needed_for_90_degree_turn = arc_distance_for_90_degree_turn_in_meters / ground_speed;

float estimated_lateral_shift_by_wind_during_turn = seconds_needed_for_90_degree_turn * head_wind;
float estimated_lateral_shift_by_wind_during_turn = seconds_needed_for_90_degree_turn * headwind;

float scaled_and_wind_corrected_turn_distance = scaled_turn_distance - estimated_lateral_shift_by_wind_during_turn;

Expand Down

0 comments on commit dca1564

Please sign in to comment.