-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
When powering on the Jetson Orin and auto starting a script using pyCANdle, an error is reported: Did not receive response from CANdle! [FAILED]. When this happens, the drives do not respond to position commands.
- How to detect this failure?
- What is the cause of it and how can it be avoided?
Logs:
[CANDLE] CANdle library version: v3.4.1
[CANDLE] Device firmware version: v2.2.1
[CANDLE] CANdle at /dev/ttyACM0, ID: 0xac12a51e374c1f30 ready (USB)
[CANDLE] Starting pinging drives at baudrate: 1M
[CANDLE] Found drives.
[CANDLE] 1: ID = 144 (0x90)
[CANDLE] 2: ID = 145 (0x91)
[CANDLE] Added MD80 with ID: 145 [OK]
[CANDLE] Added MD80 with ID: 144 [OK]
[CANDLE] Setting new zero position successful at ID: 145 [OK]
[CANDLE] Setting control mode successful at ID: 145 [OK]
[CANDLE] Enabling successful at ID: 145 [OK]
[CANDLE] Setting new zero position successful at ID: 144 [OK]
[CANDLE] Setting control mode successful at ID: 144 [OK]
[CANDLE] Enabling successful at ID: 144 [OK]
[CANDLE] Beginnig auto update loop mode [OK]
[CANDLE] Did not receive response from CANdle! [FAILED]
I'm using the following code to detect if there are any errors with the drives, but motors don't seem to report any errors when Did not receive response from CANdle! [FAILED] happens
quick_status = self.candle.md80s[id].getQuickStatus()
error_bits = {
'main_encoder_error': (quick_status & (1 << 0)) != 0,
'output_encoder_error': (quick_status & (1 << 1)) != 0,
'calibration_encoder_error': (quick_status & (1 << 2)) != 0,
'mosfet_bridge_error': (quick_status & (1 << 3)) != 0,
'hardware_errors': (quick_status & (1 << 4)) != 0,
'communication_errors': (quick_status & (1 << 5)) != 0,
'motion_errors': (quick_status & (1 << 6)) != 0
}
self.get_logger().info(error_bits)
errors_detected = False
for key, val in error_bits.items():
if val:
self.get_logger().error(f"ID {id}: {key}")
errors_detected = TrueReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels