|
|
|
@ -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); |
|
|
|
|