Error on Arduino " requested_state = " (Odrive S1)

I am using OdriveS1.
I get the following error:
Is my code wrong?
teach me please.

arduino code
requested_state = ODriveArduino::AXIS_STATE_CLOSED_LOOP_CONTROL;

arduino error
exit status 1
‘AXIS_STATE_CLOSED_LOOP_CONTROL’ is not a member of ‘ODriveArduino’

I’m not sure if this is user error or just an older library version, make sure you’re using the latest version, we recently updated our official arduino library. The enum you’re looking for is ODriveAxisState::AXIS_STATE_CLOSED_LOOP_CONTROL.

1 Like