-26-
3.2
GPS Data Packet
GPS Data Packets are triggered every second. All the multi-byte values are unsigned and in little endian format.
Before NMEA messages are available from the external GPS module
Each rising edge of the LiDAR's internal 1 Hz signal triggers a GPS Data Packet.
The time and date in the GPS Data Packets are unreal, starting from 00 01 01 00 00 00 (year, month, day, hour, minute, second) and increasing
with the internal 1 Hz signal.
Once the LiDAR receives the PPS (pulse-per-second) signal and NMEA messages
The internal 1 Hz signal will be locked to the PPS. Each rising edge still triggers a GPS Data Packet.
Meanwhile, the LiDAR will extract the actual date and time from NMEA messages ($GPRMC or $GPGGA), and stamp them into both Point Cloud
Data Packets and GPS Data Packets.
· Point Cloud Data Packets: 6-byte Date & Time (year, month, day, hour, minute, second)
· GPS Data Packets: 6-byte Date (year, month, day) and 6-byte Time (second, minute, hour)
The GPS module sends first the PPS signal and then the NMEA message. At the rising edge of the PPS pulse, the corresponding NMEA message is
not yet available. Therefore, the LiDAR extracts date and time from the previous NMEA message and automatically adds 1 full second.
When GPS signal is lost
The LiDAR will still trigger GPS Data Packets by the rising edge of the internal 1 Hz signal. However, the GPS time in the packets will be counted
by the internal 1 Hz signal and will drift from the actual GPS time.