Skip to content

Commit 1438aac

Browse files
committed
AP_Proximity: LD06 updates OA database with 2deg sector dist
1 parent ff0acad commit 1438aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/AP_Proximity/AP_Proximity_LD06.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ void AP_Proximity_LD06::parse_response_data()
215215
_last_angle_deg = (float)_angle_2deg;
216216
}
217217

218-
// update OA database
219-
database_push(_last_angle_deg, _last_distance_m);
218+
// update OA database with the 2 degree sectors distance
219+
database_push(_angle_2deg, _dist_2deg_m);
220220

221221
// advance to the next 2 degree sector
222222
_angle_2deg = a2d;

0 commit comments

Comments
 (0)