enable() / disable() | Enable motor / engage brake |
clear_errors() | Clear latched error flags |
set_zero_position() | Save current position as encoder zero (persisted to flash). Calibrated at a mechanical end stop, not the rest position |
set_control_mode(mode) | Set ControlMode; required before mode-specific commands |
get_control_mode() | Read active mode from hardware (None for MyActuator) |
get_position() | Shaft position (rad); raises if telemetry is active |
get_velocity() | Shaft velocity (rad/s) |
get_torque() | Torque estimate (Nm); raises if telemetry is active |
get_temperature() | Motor temperature (°C) |
get_voltage() | Bus voltage (V) |
get_error_code() | MotorStatus |
get_gains() / set_gains(gains) | Read/write PID gains (persisted to flash) |
set_impedance(p_des, v_des, kp, kd, t_ff) | MIT impedance command; requires IMPEDANCE mode |
set_position_velocity(position, max_speed) | Built-in position controller; requires POSITION_VELOCITY mode |
set_velocity(velocity) | Built-in speed controller; requires VELOCITY mode |
set_position_force(position, max_speed, max_torque) | Damiao only; requires POSITION_FORCE mode |
set_acceleration(acceleration, deceleration) | Acceleration ramp (rad/s²) |
set_can_id(can_id) | Change CAN ID (persisted to flash) |
start_telemetry(hz, torque=False) / stop_telemetry() | Background polling loop |
motor.position | Cached position (rad); populated by telemetry or set_impedance responses |
motor.torque | Cached torque (Nm); populated by telemetry with torque=True |