From d841bf124fc3201c6d14add3ae65ce84187081d3 Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Fri, 26 Jul 2024 16:26:17 +0200 Subject: [PATCH] fw_position_control: use time literals --- src/modules/fw_pos_control/FixedwingPositionControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/fw_pos_control/FixedwingPositionControl.cpp b/src/modules/fw_pos_control/FixedwingPositionControl.cpp index 6cc6bd01a99c..f636b0e013fd 100644 --- a/src/modules/fw_pos_control/FixedwingPositionControl.cpp +++ b/src/modules/fw_pos_control/FixedwingPositionControl.cpp @@ -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; }