rspace-online/backlog/tasks/task-129 - Pico-firmware-—-...

980 B

id title status assignee created_date labels milestone dependencies priority
TASK-129 Pico firmware — command parser + USB serial Done
2026-03-29 20:51
firmware
m-2
high

Description

Write command_parser.py (JSON line parser, validates & dispatches to servo/LED) and transport_usb.py (non-blocking USB serial listener at 115200 baud).

Acceptance Criteria

  • #1 Parses all command types: pan/tilt, led, led_pwm, home, ping
  • #2 Returns JSON ack with current position
  • #3 Graceful error handling for malformed JSON
  • #4 Non-blocking stdin poll with buffer overflow guard

Final Summary

command_parser.py: stateless dispatcher with strict validation, defined processing order. transport_usb.py: select.poll non-blocking with 512-char overflow guard.