How to read if E stop is active
How to read if E stop is active
I am using the Arduino library and the function GetPinFunctions seems not to work properly.
It always returns a false.
I have Pin 5 set as E-STOP( Non latching )
The comparison between the crc value and the returned by roboclaw are different.
Roboclaw address is 0x80 and command sent 75
crc calculated = <18035>
crc returned = <32627>
The Roboclaw is working as I can control speed and read the encoders.
This is the version I am using:
USB Roboclaw 2x30a v4.1.33
Also is GetPinFunctions the correct function to check if E stop is active?
It always returns a false.
I have Pin 5 set as E-STOP( Non latching )
The comparison between the crc value and the returned by roboclaw are different.
Roboclaw address is 0x80 and command sent 75
crc calculated = <18035>
crc returned = <32627>
The Roboclaw is working as I can control speed and read the encoders.
This is the version I am using:
USB Roboclaw 2x30a v4.1.33
Also is GetPinFunctions the correct function to check if E stop is active?
- Basicmicro Support
- Posts: 1594
- Joined: Thu Feb 26, 2015 9:45 pm
Re: How to read if E stop is active
1. GetPinFunctions is not the correct command if you want to see the "state" of the E-Stop pin. You should use the ReadError command. Also, the return values have changed as of the latest release. See the post linked below until the new manual has been released(sometime this week I expect).
viewtopic.php?f=2&t=879
2. Please provide the code you use to send the GetPinFunction command and calculate the CRC. I would like to see if I can reproduce the problem.
viewtopic.php?f=2&t=879
2. Please provide the code you use to send the GetPinFunction command and calculate the CRC. I would like to see if I can reproduce the problem.