mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Proximity: RPLidarA2: correct face distances are assigned to
This commit is contained in:
parent
567e9733b6
commit
ee2f615352
@ -317,7 +317,7 @@ void AP_Proximity_RPLidarA2::parse_response_data()
|
||||
if (face != _last_face) {
|
||||
// distance is for a new face, the previous one can be updated now
|
||||
if (_last_distance_valid) {
|
||||
boundary.set_face_attributes(face, _last_angle_deg, _last_distance_m);
|
||||
boundary.set_face_attributes(_last_face, _last_angle_deg, _last_distance_m);
|
||||
} else {
|
||||
// reset distance from last face
|
||||
boundary.reset_face(face);
|
||||
|
Loading…
Reference in New Issue
Block a user