i%40==39 fired the first IWDG refresh only after 40ms of calibration. Combined with ~10ms of main loop overhead before entering calibrate(), total elapsed since last refresh could exceed the 50ms IWDG window. Change to i%40==0: first refresh fires at i=0 (<1ms after entry), subsequent refreshes every 40ms — safely within the 50ms window. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Merge pull request 'feat: Jetson command protocol — /cmd_vel to STM32 (Phase 2)' (#34) from sl-jetson/command-protocol into main
Description
SaltyLab self-balancing bot firmware (STM32F722)
Languages
Python
67.1%
C
11.4%
JavaScript
9.2%
OpenSCAD
7.8%
HTML
1.5%
Other
2.9%