Browse Source

AP_Proximity: RPLidarA2: correct face distances are assigned to

zr-v5.1
Peter Barker 4 years ago committed by Peter Barker
parent
commit
ee2f615352
  1. 2
      libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp

2
libraries/AP_Proximity/AP_Proximity_RPLidarA2.cpp

@ -317,7 +317,7 @@ void AP_Proximity_RPLidarA2::parse_response_data() @@ -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…
Cancel
Save