mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-18 01:18:52 +08:00
add MSG_SET_LINEAR_COUNT back again at 0x19
This commit is contained in:
@@ -138,12 +138,15 @@ void CANSimple::do_command(Axis& axis, const can_Message_t& msg) {
|
||||
if (msg.rtr)
|
||||
get_vbus_voltage_callback(axis);
|
||||
break;
|
||||
case MSG_ENCODER_REF_UPDATE:
|
||||
encoder_ref_update(axis, msg);
|
||||
break;
|
||||
case MSG_CLEAR_ERRORS:
|
||||
clear_errors_callback(axis, msg);
|
||||
break;
|
||||
case MSG_SET_LINEAR_COUNT:
|
||||
set_linear_count_callback(axis, msg);
|
||||
break;
|
||||
case MSG_ENCODER_REF_UPDATE:
|
||||
encoder_ref_update(axis, msg);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -32,6 +32,7 @@ class CANSimple {
|
||||
MSG_RESET_ODRIVE,
|
||||
MSG_GET_VBUS_VOLTAGE,
|
||||
MSG_CLEAR_ERRORS,
|
||||
MSG_SET_LINEAR_COUNT,
|
||||
MSG_ENCODER_REF_UPDATE,
|
||||
MSG_CO_HEARTBEAT_CMD = 0x700, // CANOpen NMT Heartbeat SEND
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user