From 02a9b9f7ed7d528d441e1c2e55603b2fb275ef9d Mon Sep 17 00:00:00 2001 From: Steve Nguyen Date: Thu, 7 Mar 2024 16:09:01 +0100 Subject: [PATCH] add board_state, add limit_max --- src/device/orbita2d_poulpe.rs | 4 ++++ src/device/orbita3d_poulpe.rs | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/device/orbita2d_poulpe.rs b/src/device/orbita2d_poulpe.rs index 8de6720..07a32ef 100644 --- a/src/device/orbita2d_poulpe.rs +++ b/src/device/orbita2d_poulpe.rs @@ -25,7 +25,9 @@ reg_read_only!(firmware_version, 6, u8); reg_read_write!(id, 7, u8); reg_read_write!(velocity_limit, 10, MotorValue::); +reg_read_write!(velocity_limit_max, 12, MotorValue::); reg_read_write!(torque_flux_limit, 14, MotorValue::); +reg_read_write!(torque_flux_limit_max, 16, MotorValue::); reg_read_write!(uq_ud_limit, 18, MotorValue::); reg_read_write!(flux_pid, 20, MotorValue::); @@ -46,6 +48,8 @@ reg_read_write_fb!( MotorPositionSpeedLoad ); +reg_read_write!(board_state, 80, u8); + reg_read_only!(axis_sensor, 90, MotorValue::); reg_read_only!(full_state, 100, MotorPositionSpeedLoad); diff --git a/src/device/orbita3d_poulpe.rs b/src/device/orbita3d_poulpe.rs index 1bb3d50..0bbfae4 100644 --- a/src/device/orbita3d_poulpe.rs +++ b/src/device/orbita3d_poulpe.rs @@ -37,7 +37,9 @@ reg_read_only!(firmware_version, 6, u8); reg_read_write!(id, 7, u8); reg_read_write!(velocity_limit, 10, MotorValue::); +reg_read_write!(velocity_limit_max, 12, MotorValue::); reg_read_write!(torque_flux_limit, 14, MotorValue::); +reg_read_write!(torque_flux_limit_max, 16, MotorValue::); reg_read_write!(uq_ud_limit, 18, MotorValue::); reg_read_write!(flux_pid, 20, MotorValue::); @@ -57,7 +59,7 @@ reg_read_write_fb!( MotorValue::, MotorPositionSpeedLoad ); - +reg_read_write!(board_state, 80, u8); reg_read_only!(axis_sensor, 90, MotorValue::); reg_read_only!(index_sensor, 99, MotorValue::); reg_read_only!(full_state, 100, MotorPositionSpeedLoad);