P2: Clean up ESC debug output and diagnostic commands #521

Closed
opened 2026-03-06 22:35:51 -05:00 by seb · 0 comments
Owner

Context

During motor bench testing (2026-03-06), several diagnostic features were added:

  1. hoverboard_backend_send() prints ESC tx=N rc=X spd=Y str=Z every 50th send on USART6
  2. R command in jetson_uart.c: raw blocking UART5 baud sweep test
  3. X command: GPIO test on PC12
  4. huart2 made non-static for diagnostic access

Action

  • Remove or guard ESC debug output behind a compile flag (it floods USART6)
  • Keep R and X commands but move behind #ifdef DEBUG_MOTOR_TEST
  • Make huart2 static again once R command is guarded
  • Clean up stale comments ("PA2=TX, PA3=RX, AF7 for USART2" in esc_hoverboard.c)
## Context During motor bench testing (2026-03-06), several diagnostic features were added: 1. `hoverboard_backend_send()` prints `ESC tx=N rc=X spd=Y str=Z` every 50th send on USART6 2. `R` command in jetson_uart.c: raw blocking UART5 baud sweep test 3. `X` command: GPIO test on PC12 4. `huart2` made non-static for diagnostic access ## Action - Remove or guard ESC debug output behind a compile flag (it floods USART6) - Keep R and X commands but move behind `#ifdef DEBUG_MOTOR_TEST` - Make `huart2` static again once R command is guarded - Clean up stale comments ("PA2=TX, PA3=RX, AF7 for USART2" in esc_hoverboard.c)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seb/saltylab-firmware#521
No description provided.