Skip to content

Commit 05577a0

Browse files
committed
remove debugging output
1 parent 9a6836f commit 05577a0

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/gui/gui_main.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,7 @@ void CameraCallback(const Image::SharedPtr msg) {
107107
// Joystick callback - marks joystick as okay when messages are received
108108
void JoystickCallback(const Joy::SharedPtr msg) {
109109
if (!run_.load() || !rclcpp::ok()) return;
110-
// If we receive a joystick message, the joystick is connected and working
111-
static int message_count = 0;
112-
message_count++;
113-
if (message_count % 50 == 0) { // Print every 50th message to avoid spam
114-
printf("Joystick message received (#%d): %zu axes, %zu buttons\n",
115-
message_count, msg->axes.size(), msg->buttons.size());
116-
}
117-
110+
118111
// Update the last joystick message timestamp
119112
last_joystick_time_.store(std::chrono::steady_clock::now());
120113
joystick_okay_.store(true);

0 commit comments

Comments
 (0)