feat: UART command protocol for Jetson-STM32 (Issue #629) #639
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "sl-firmware/issue-629-uart-protocol"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
STX(0x02) + LEN + CMD + PAYLOAD + CRC8-SMBUS + ETX(0x03)SET_VELOCITY(RPM direct to CAN motors),GET_STATUS,SET_PID,ESTOP,CLEAR_ESTOPUART_PROT_HB_TIMEOUT_MS)Files
include/uart_protocol.h— frame constants, command/response IDs,uart_prot_status_t,UartProtState, APIsrc/uart_protocol.c— UART5 + DMA init, CRC8, parser state machine, dispatcher, TX helpersinclude/config.h—UART_PROT_BAUD,UART_PROT_HB_TIMEOUT_MSsrc/main.c—uart_protocol_init(),uart_protocol_process(), command dispatch, 10 Hz STATUS TXTest plan
Closes #629