Skip to content

Commit 33724b4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/AP_Proximity/AP_Proximity_LD06.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void AP_Proximity_LD06::parse_response_data()
216216
}
217217

218218
// update OA database
219-
database_push(_last_angle_deg, _last_distance_m);
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)