Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
EKF: Remove implicit conversion and use single precision trig operator
Browse files Browse the repository at this point in the history
Double precision accuracy is not required for this operation.
  • Loading branch information
priseborough committed Sep 18, 2018
1 parent b68b6d1 commit 688da37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EKF/gps_yaw_fusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ void Ekf::fuseGpsAntYaw()
predicted_hdg = atan2f(ant_vec_ef(1),ant_vec_ef(0));

// calculate observation jacobian
float t2 = sin(_gps_yaw_offset);
float t3 = cos(_gps_yaw_offset);
float t2 = sinf(_gps_yaw_offset);
float t3 = cosf(_gps_yaw_offset);
float t4 = q0*q3*2.0f;
float t5 = q0*q0;
float t6 = q1*q1;
Expand Down

0 comments on commit 688da37

Please sign in to comment.