From 63db93c6d7611a4c22e56ef47d8dcc81056bb2ab Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 7 Jul 2022 17:25:16 +0900 Subject: [PATCH] AP_Proximity: minor format fix --- libraries/AP_Proximity/AP_Proximity_Boundary_3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Proximity/AP_Proximity_Boundary_3D.cpp b/libraries/AP_Proximity/AP_Proximity_Boundary_3D.cpp index 3bb63f1809..0f38ccc6e4 100644 --- a/libraries/AP_Proximity/AP_Proximity_Boundary_3D.cpp +++ b/libraries/AP_Proximity/AP_Proximity_Boundary_3D.cpp @@ -46,7 +46,7 @@ void AP_Proximity_Boundary_3D::init() // pitch is the vertical body-frame angle (in degrees) to the obstacle (0=directly ahead, 90 is above the vehicle) // yaw is the horizontal body-frame angle (in degrees) to the obstacle (0=directly ahead of the vehicle, 90 is to the right of the vehicle) AP_Proximity_Boundary_3D::Face AP_Proximity_Boundary_3D::get_face(float pitch, float yaw) const -{ +{ const uint8_t sector = wrap_360(yaw + (PROXIMITY_SECTOR_WIDTH_DEG * 0.5f)) / 45.0f; const float pitch_limited = constrain_float(pitch, -75.0f, 74.9f); const uint8_t layer = (pitch_limited + 75.0f)/PROXIMITY_PITCH_WIDTH_DEG;