diff --git a/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp b/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp index 77dca787ea3e83bd01fbfe0bb6a357e6e4d652c8..765cd0b00da050b6c4f074e6df08efe6971e3ab7 100644 --- a/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp +++ b/modules/catkin_ws/src/VeloxProtocolLib/test/Main.cpp @@ -12,8 +12,11 @@ int main(int argc, char ** argv) auto conn = Connection::create(net); conn->open( "/dev/ttySAC0", - [] - { std::cout << "Update received!\n"; }, + [conn] + { + std::cout << "[Update]\nSpeed=" << conn->getMeasuredSpeed().get() + << "\nSteering Angle: " << conn->getMeasuredSteeringAngle().get(); + }, [] { std::cout << "Connection closed!\n"; });