mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 06:53:34 +08:00
EKF: use uint64_t cast for XeY to avoid float casting of variables
The default type for XeY is float
This commit is contained in:
+1
-2
@@ -232,6 +232,5 @@ bool Ekf::gps_is_good(struct gps_message *gps)
|
||||
}
|
||||
|
||||
// continuous period without fail of 10 seconds required to return a healthy status
|
||||
return (_time_last_imu - _last_gps_fail_us > 1e7);
|
||||
return (_time_last_imu - _last_gps_fail_us > (uint64_t)1e7);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user