quanergy M8 User Manual page 75

Table of Contents

Advertisement

1. Disconnect or turn off the GPS receiver. (This will allow you to distinguish between the
sensor's own timestamp and the GPS receiver's timestamp later in this procedure.)
2. Open a terminal window, and execute the following commands:
$ roscd quanergy_client_ros
$ cd settings
$ sudo gedit client.xml
3. In the client.xml file that opens up in the text editor:
• Find the
<useRosTime>
<useRosTime>false</useRosTime>
• The value must be
that by adding the following comment (or similar) after the
<!-- when using NMEA, set this value to false -->
• Save and exit the file.
4. Execute the command
capitalization (
/sensor/points
5. Display the timestamp from the sensor only by executing this command:
$ rostopic echo /Sensor/points/header/stamp
You will see a display of seconds incrementing from zero, as counted up from
the sensor's internal clock, which resets when the sensor is power cycled.
6. Reconnect the GPS receiver to the M8 sensor, and power it on.
7. Wait about thirty seconds for signals to fully synchronize with the sensor.
(Once synchronization takes place, you will be able to see a display of the timestamp
in real time.)
8. Display the timestamp with NMEA/PPS input by executing this command:
$ rostopic echo /Sensor/points/header/stamp
The return will look similar to this:
secs: 1504238913 <== UNIX Epoch time (Number of seconds since Jan 1, 1970)
nsecs: 75048100 <== Nanoseconds
---
secs: 1504238913
nsecs: 848061000
switch; change the default value (
for NMEA to work, so it's a good idea to document
false
. Check the resulting list for the proper
rostopic list
or
/Sensor/points
M8 Sensor User Guide, QPN 96-00001 Rev K
) to
true
false
<useRosTime>
) to use in the next step.
as follows:
switch:
Page 75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents