Goal
Confirm that the link, motor handle, and feedback path all work.Run
Key APIs
ctrl.enable_all(): enable control outputmotor.request_feedback(): request one fresh feedback framectrl.poll_feedback_once(): manually advance feedback receive/parse once (kept for old-version compatibility)motor.get_state(): read the current state struct
Version Notes (important)
<= v0.1.6: keeppoll_feedback_once(), otherwisestate=Noneis more likely.v0.1.7+: background polling is enabled by default; manualpoll_feedback_once()is usually unnecessary.- This course keeps the call for backward compatibility.
Why you sometimes see state=None
get_state()only returns the latest received feedback.- If no valid feedback frame has arrived yet, it returns
None. - The sample uses “retry + poll_feedback_once()” to reduce this (the poll is optional on new versions).