From 5b5d390bc4d3e17b6348db9f532bf9fb6d8ac81c Mon Sep 17 00:00:00 2001 From: Sucan126 <632190820@qq.com> Date: Thu, 9 Oct 2025 16:56:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(monitor):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E7=94=A8=E7=9A=84=E6=89=93=E5=8D=B0=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=E4=BB=A5=E6=B8=85=E7=90=86=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/monitor.cpp | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/monitor.cpp b/src/monitor.cpp index c5d0393..0cb85d6 100644 --- a/src/monitor.cpp +++ b/src/monitor.cpp @@ -40,37 +40,37 @@ void Monitor::sportModeStateCallback(const void* message) { static_cast(message); // Print position data - std::cout << "Position: " - << state->position()[0] << ", " - << state->position()[1] << ", " - << state->position()[2] << std::endl; + // std::cout << "Position: " + // << state->position()[0] << ", " + // << state->position()[1] << ", " + // << state->position()[2] << std::endl; - // Print IMU data - const auto& imu = state->imu_state(); + // // Print IMU data + // const auto& imu = state->imu_state(); - std::cout << "IMU Quaternion: " - << imu.quaternion()[0] << ", " - << imu.quaternion()[1] << ", " - << imu.quaternion()[2] << ", " - << imu.quaternion()[3] << std::endl; + // std::cout << "IMU Quaternion: " + // << imu.quaternion()[0] << ", " + // << imu.quaternion()[1] << ", " + // << imu.quaternion()[2] << ", " + // << imu.quaternion()[3] << std::endl; - std::cout << "IMU Gyroscope: " - << imu.gyroscope()[0] << ", " - << imu.gyroscope()[1] << ", " - << imu.gyroscope()[2] << std::endl; + // std::cout << "IMU Gyroscope: " + // << imu.gyroscope()[0] << ", " + // << imu.gyroscope()[1] << ", " + // << imu.gyroscope()[2] << std::endl; - std::cout << "IMU Accelerometer: " - << imu.accelerometer()[0] << ", " - << imu.accelerometer()[1] << ", " - << imu.accelerometer()[2] << std::endl; + // std::cout << "IMU Accelerometer: " + // << imu.accelerometer()[0] << ", " + // << imu.accelerometer()[1] << ", " + // << imu.accelerometer()[2] << std::endl; - std::cout << "IMU RPY: " - << imu.rpy()[0] << ", " - << imu.rpy()[1] << ", " - << imu.rpy()[2] << std::endl; + // std::cout << "IMU RPY: " + // << imu.rpy()[0] << ", " + // << imu.rpy()[1] << ", " + // << imu.rpy()[2] << std::endl; - std::cout << "IMU Temperature: " << imu.temperature() << std::endl; - std::cout << "---" << std::endl; + // std::cout << "IMU Temperature: " << imu.temperature() << std::endl; + // std::cout << "---" << std::endl; } void Monitor::odometryCallback(const void* message) {