
If you want to disable the command timeout feature, you can use the “Set variable” command to
clear the command timeout bit in the “Error mask” variable.
Error response
Category
general
Offset
7
Type
unsigned 8-bit
Default
0 (Coast)
Data
•
0:
Coast
•
1:
Brake
•
2:
Coast now
•
3:
Brake now
Command
Set variable
Arduino library
void setErrorResponse(uint8_t response)
void getErrorResponse()
This variable defines how the Motoron will stop its motors when an error is happening. (The
conditions that count as errors are defined by the
variable.)
•
Coast
means that the Motoron will make all of its motors coast while obeying
deceleration limits. This is equivalent to sending a “Set braking” command with a brake
amount of 0 to each motor. If no deceleration limits are set, this is also equivalent to the
“Coast now” error response.
•
Brake
means that the Motoron will make all of its motors brake while obeying
deceleration limits. This is equivalent to sending a “Set braking” command with a brake
amount of 800 to each motor. If no deceleration limits are set, this is also equivalent to
the “Brake now” error response.
•
Coast now
means that the Motoron will make all of its motors coast immediately without
obeying deceleration limits. This is equivalent to sending the “Coast now” command, and
it is also equivalent to sending a “Set braking now” command with a brake amount of 0
to each motor.
•
Brake now
means that the Motoron will make all of its motors brake immediately without
obeying deceleration limits. This is equivalent to sending a “Set braking now” command
with a brake amount of 800 to each motor.
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
8. Variable reference
Page 39 of 67