Skip to content

Add MotionControlType::angle_nocascade support to DCMotor::move()#16

Open
ator1811 wants to merge 1 commit into
simplefoc:mainfrom
ator1811:main
Open

Add MotionControlType::angle_nocascade support to DCMotor::move()#16
ator1811 wants to merge 1 commit into
simplefoc:mainfrom
ator1811:main

Conversation

@ator1811

Copy link
Copy Markdown

Direct-voltage angle control: P_angle output goes straight to voltage.q without an inner velocity loop, mirroring the FOCMotor base class implementation. LPF_angle is applied to shaft_angle before the error calculation (configurable via commander AAF; passthrough when Tf=0). Output is clamped to voltage_limit via _constrain.

Previously this mode hit the default branch, which called disable() and set motor_status = motor_error, silently stopping the motor.

Direct-voltage angle control: P_angle output goes straight to voltage.q
without an inner velocity loop, mirroring the FOCMotor base class
implementation. LPF_angle is applied to shaft_angle before the error
calculation (configurable via commander AAF; passthrough when Tf=0).
Output is clamped to voltage_limit via _constrain.

Previously this mode hit the default branch, which called disable() and
set motor_status = motor_error, silently stopping the motor.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant