Skip to content

Await acks for write SDO, filter endpoint IDs#22

Open
solomondg wants to merge 1 commit into
masterfrom
feature/await-sdo-acks
Open

Await acks for write SDO, filter endpoint IDs#22
solomondg wants to merge 1 commit into
masterfrom
feature/await-sdo-acks

Conversation

@solomondg

Copy link
Copy Markdown
Contributor

The ODrive sends a TxSdo in response to any RxSdo, writes included. setEndpoint() was firing the write and returning true unconditionally, with no confirmation it landed.

This makes setEndpoint() wait for that ACK. Mirrors getEndpoint(): it gains an optional timeout_ms = 10 param and returns true only when an acknowledgment arrives whose echoed Endpoint_ID matches the write (timeout_ms = 0 keeps the old behavior).

getEndpoint() now also discards any TxSdo that echoes a different endpoint than requested.

@solomondg solomondg requested a review from samuelsadok June 19, 2026 06:43
@solomondg solomondg force-pushed the feature/await-sdo-acks branch from 2996d1f to 3c70a7f Compare June 19, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant