My device has GPS, and after my detection its type is GPS_TYPE_UNICORE_NMEA = 24, but I need to get the time obtained by GPS, I find that the system time in Mission Planner is not updated, this code is located in RTC, it is called by GPS.update, and it always enters if (_type[instance] == update_instance execution GPS_TYPE_NONE) { And go back, how should I modify the setting of the system time without completing it.}
You have configured it incorrectly. Did you configured the serial port?
I received the timestamp I got from gps, in the update function of gps, it called the set_utc_usec of the RTC and passed it to the hardware and the massion planner, but he got the obvious London time, I was in the East 8th district, I added a time offset to the time he sent to the ground station, it was clear that the time of the ground station did not change, and secondly I would like to ask you if (type != SOURCE_HW) {
hal.util->set_hw_rtc(time_utc_usec);
}
rtc_source_type = type;
// AP::ds3231().set_utc_usec(time_utc_usec);
#if HAL_GCS_ENABLED
// update signing timestamp
GCS_MAVLINK::update_signing_timestamp(time_utc_usec+28800000000); The set_hw_rtc of this is where the time value is configured