@@ -33,25 +33,25 @@ auto main() -> int
33
33
// Register a callback to receive velocity reports
34
34
client.register_callback ([](const waterlinked::VelocityReport & report) {
35
35
std::cout << " Received velocity report:\n " ;
36
- std::cout << " Time: " << report.time .count () << " ms \n " ;
37
- std::cout << " Velocity: (" << report.vx << " , " << report.vy << " , " << report.vz << " ) m/s \n " ;
38
- std::cout << " Figure of merit: " << report.fom << " m/s \n " ;
39
- std::cout << " Altitude: " << report.altitude << " m \n " ;
36
+ std::cout << " Time: " << report.time .count () << " \n " ;
37
+ std::cout << " Velocity: (" << report.vx << " , " << report.vy << " , " << report.vz << " )\n " ;
38
+ std::cout << " Figure of merit: " << report.fom << " \n " ;
39
+ std::cout << " Altitude: " << report.altitude << " \n " ;
40
40
std::cout << " Velocity valid: " << report.velocity_valid << " \n " ;
41
41
std::cout << " Status: " << static_cast <int >(report.status ) << " \n " ;
42
- std::cout << " Time of validity: " << report.time_of_validity .time_since_epoch ().count () << " us \n " ;
43
- std::cout << " Time of transmission: " << report.time_of_transmission .time_since_epoch ().count () << " us \n " ;
42
+ std::cout << " Time of validity: " << report.time_of_validity .time_since_epoch ().count () << " \n " ;
43
+ std::cout << " Time of transmission: " << report.time_of_transmission .time_since_epoch ().count () << " \n " ;
44
44
});
45
45
46
46
// Register a callback to receive dead reckoning reports
47
47
client.register_callback ([](const waterlinked::DeadReckoningReport & report) {
48
48
std::cout << " Received dead reckoning report:\n " ;
49
- std::cout << " Timestamp: " << report.ts .time_since_epoch ().count () << " us \n " ;
50
- std::cout << " Position: (" << report.x << " , " << report.y << " , " << report.z << " ) m \n " ;
51
- std::cout << " Standard deviation: " << report.std << " m \n " ;
52
- std::cout << " Roll: " << report.roll << " degrees \n " ;
53
- std::cout << " Pitch: " << report.pitch << " degrees \n " ;
54
- std::cout << " Yaw: " << report.yaw << " degrees \n " ;
49
+ std::cout << " Timestamp: " << report.ts .time_since_epoch ().count () << " \n " ;
50
+ std::cout << " Position: (" << report.x << " , " << report.y << " , " << report.z << " ) \n " ;
51
+ std::cout << " Standard deviation: " << report.std << " \n " ;
52
+ std::cout << " Roll: " << report.roll << " \n " ;
53
+ std::cout << " Pitch: " << report.pitch << " \n " ;
54
+ std::cout << " Yaw: " << report.yaw << " \n " ;
55
55
});
56
56
57
57
// Let the driver run indefinitely
0 commit comments