mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
AP_UAVCAN: rename macros to avoid conflicts
This commit is contained in:
parent
db64da7856
commit
3018728f50
@ -78,8 +78,8 @@ static void gnss_fix_cb(const uavcan::ReceivedDataStructure<uavcan::equipment::g
|
||||
uint64_t epoch_ms = uavcan::UtcTime(msg.gnss_timestamp).toUSec();
|
||||
epoch_ms /= 1000;
|
||||
uint64_t gps_ms = epoch_ms - UNIX_OFFSET_MSEC;
|
||||
state->time_week = (uint16_t)(gps_ms / MSEC_PER_WEEK);
|
||||
state->time_week_ms = (uint32_t)(gps_ms - (state->time_week) * MSEC_PER_WEEK);
|
||||
state->time_week = (uint16_t)(gps_ms / AP_MSEC_PER_WEEK);
|
||||
state->time_week_ms = (uint32_t)(gps_ms - (state->time_week) * AP_MSEC_PER_WEEK);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user