Skip to content

Commit

Permalink
fw_position_control: use time literals
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuhrer committed Jul 26, 2024
1 parent 9d9d8ae commit d841bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/fw_pos_control/FixedwingPositionControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ FixedwingPositionControl::control_manual_position(const float control_interval,

// if there's a reset-by-fusion, the ekf needs some time to converge,
// therefore we go into track holiding for 2 seconds
if (_local_pos.timestamp - _time_last_xy_reset < 2e6) {
if (_local_pos.timestamp - _time_last_xy_reset < 2_s) {
_hdg_hold_position.lat = _current_latitude;
_hdg_hold_position.lon = _current_longitude;
}
Expand Down

0 comments on commit d841bf1

Please sign in to comment.