
If you send this command while the “Current speed” variable of any motor is non-zero, it could
cause the Motoron to recover from a fault and suddenly start driving the motor at that speed.
Clear latched status flags
Arguments
Flags:
10-bit value
Response
None
Arduino library
void clearLatchedStatusFlags(uint16_t flags)
void clearResetFlag()
Command encoding:
0xA9 lower 7 bits of flags upper 3 bits of flags
Description:
For each bit in the
flags
argument that is 1, this command clears the corresponding bit in the
“Status flags” variable, setting it to 0. The “Status flags” variable and all of its bits are documented
in
The Reset flag is particularly important to clear: it gets set to 1 after the Motoron powers on or
experiences a reset, and it is considered to be an error by default, so it prevents the motors from
running. Therefore, it is necessary to use this command to clear the Reset flag before you can get
the motors running (or alternatively you can change the error mask).
We recommend that
immediately after
you clear the Reset flag, you should configure the
Motoron’s motor settings and error response settings. That way, if the Motoron experiences an
unexpected reset while your system is running, it will stop running its motors and it will not start
them again until all the important settings have been configured.
The Reset flag is bit 9 in the “Status flags” variable. Therefore, to clear it, you would set the flags
argument to 0x200. This would result in a command with the following three bytes (not including
the CRC byte):
0xA9 0x00 0x04
.
Set latched status flags
Arguments
Flags:
10-bit value
Response
None
Arduino library
void setLatchedStatusFlags(uint16_t flags)
Pololu Motoron Motor Controller User’s Guide
© 2001–2022 Pololu Corporation
9. Command reference
Page 60 of 67