Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Sep 29, 2024
1 parent cc97967 commit 8d8d2da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/vision_target_estimator/Position/VTEPosition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ bool VTEPosition::processObsUwb(const sensor_uwb_s &uwb_report, targetObsPos &ob
{

// Convert degrees to radians
const float theta_rad = uwb_report.aoa_azimuth_dev * (M_PIf32 / 180.0f);
const float phi_rad = uwb_report.aoa_elevation_dev * (M_PIf32 / 180.0f);
const float theta_rad = uwb_report.aoa_azimuth_dev * static_cast<float>(M_PI / 180.0);
const float phi_rad = uwb_report.aoa_elevation_dev * static_cast<float>(M_PI / 180.0);

const float distance = uwb_report.distance;

Expand Down

0 comments on commit 8d8d2da

Please sign in to comment.