mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-04 23:18:29 -04:00
AP_Beacon: initialise counter in get_next_boundary_point
This is not a bug but at least one compiler has complained about this
This commit is contained in:
parent
8a85b8be4c
commit
a303c40f1f
@ -332,7 +332,7 @@ bool AP_Beacon::get_next_boundary_point(const Vector2f* boundary_pts, uint8_t nu
|
||||
float lowest_angle = M_PI_2;
|
||||
float lowest_angle_relative = M_PI_2;
|
||||
bool lowest_found = false;
|
||||
uint8_t lowest_index;
|
||||
uint8_t lowest_index = 0;
|
||||
for (uint8_t i=0; i < num_points; i++) {
|
||||
if (i != current_index) {
|
||||
Vector2f vec = boundary_pts[i] - curr_point;
|
||||
|
Loading…
Reference in New Issue
Block a user