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:
ChristophTobler
2017-11-08 11:40:26 +01:00
parent bba3f70a0e
commit e388e59f32
8 changed files with 26 additions and 27 deletions
+1 -2
View File
@@ -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);
}