mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
gpssim fix sign-compare
This commit is contained in:
@@ -275,7 +275,7 @@ GPSSIM::receive(int timeout)
|
||||
simulator::RawGPSData gps;
|
||||
sim->getGPSSample((uint8_t *)&gps, sizeof(gps));
|
||||
|
||||
static uint64_t timestamp_last = 0;
|
||||
static int64_t timestamp_last = 0;
|
||||
|
||||
if (gps.timestamp != timestamp_last) {
|
||||
_report_gps_pos.timestamp = hrt_absolute_time();
|
||||
|
||||
Reference in New Issue
Block a user