Skip to content

Commit

Permalink
Update src/modules/ekf2/EKF2.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Mathieu Bresciani <[email protected]>
  • Loading branch information
dirksavage88 and bresch authored Nov 5, 2024
1 parent 1b2a27b commit 3f084c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ekf2/EKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2410,7 +2410,7 @@ void EKF2::UpdateGpsSample(ekf2_timestamps_s &ekf2_timestamps)
// Apply offset
float raw_yaw_offset = matrix::wrap_pi(math::radians(_param_ekf2_gps_yaw_off.get()));
vehicle_gps_position.heading_offset = raw_yaw_offset;
vehicle_gps_position.heading -= raw_yaw_offset;
vehicle_gps_position.heading = matrix::wrap_pi(vehicle_gps_position.heading - raw_yaw_offset);
}
}

Expand Down

0 comments on commit 3f084c9

Please sign in to comment.