diff --git a/Firmware/communication/can/can_simple.cpp b/Firmware/communication/can/can_simple.cpp index fce87149..1c47c3dc 100644 --- a/Firmware/communication/can/can_simple.cpp +++ b/Firmware/communication/can/can_simple.cpp @@ -161,7 +161,7 @@ bool CANSimple::get_motor_error_callback(const Axis& axis) { txmsg.isExt = axis.config_.can.is_extended; txmsg.len = 8; - can_setSignal(txmsg, axis.motor_.error_, 0, 32, true); + can_setSignal(txmsg, axis.motor_.error_, 0, 64, true); return canbus_->send_message(txmsg); } diff --git a/docs/can-protocol.md b/docs/can-protocol.md index 3b555533..a23baeb0 100644 --- a/docs/can-protocol.md +++ b/docs/can-protocol.md @@ -38,7 +38,7 @@ CMD ID | Name | Sender | Signals | Start byte | Signal Type | Bits | Factor | Of 0x000 | CANOpen NMT Message\*\* | Master | - | - | - | - | - | - | - 0x001 | ODrive Heartbeat Message | Axis | Axis Error
Axis Current State | 0
4 | Unsigned Int
Unsigned Int | 32
32 | 1
1 | 0
0 | Intel
Intel 0x002 | ODrive Estop Message | Master | - | - | - | - | - | - | - -0x003 | Get Motor Error\* | Axis | Motor Error | 0 | Unsigned Int | 32 | 1 | 0 | Intel +0x003 | Get Motor Error\* | Axis | Motor Error | 0 | Unsigned Int | 64 | 1 | 0 | Intel 0x004 | Get Encoder Error\* | Axis | Encoder Error | 0 | Unsigned Int | 32 | 1 | 0 | Intel 0x005 | Get Sensorless Error\* | Axis | Sensorless Error | 0 | Unsigned Int | 32 | 1 | 0 | Intel 0x006 | Set Axis Node ID | Master | Axis CAN Node ID | 0 | Unsigned Int | 32 | 1 | 0 | Intel