Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learn about and implement a torque control mode #259

Open
JediScoy opened this issue Mar 21, 2024 · 3 comments
Open

Learn about and implement a torque control mode #259

JediScoy opened this issue Mar 21, 2024 · 3 comments
Assignees
Labels
research Further information is requested
Milestone

Comments

@JediScoy
Copy link
Member

JediScoy commented Mar 21, 2024

closed loop requests
Velocity with Voltage comp (used on flywheels); better than DutyCycle (aka percent output).
TorqueFOC; better still?

@JediScoy JediScoy added the research Further information is requested label Mar 21, 2024
@JediScoy JediScoy added this to the Week 6 milestone Mar 21, 2024
@JediScoy JediScoy self-assigned this Mar 21, 2024
@JediScoy
Copy link
Member Author

/*Tuning the parameters of a PID controller, is a process of trial and error. Here's a general approach:
1. Set all gains (KP, KI, KS, KV) to zero.
2. Increase KP until the output of the system oscillates. Then decrease KP by about 20-50%.
3. Increase KI until any offset is corrected in sufficient time for the process. However, too much KI will cause instability.
4. Increase KS if you need to dampen the system response or if you need to make the system more responsive.
5. KV is the voltage compensation gain. It's used to compensate for changes in the system's voltage. Adjust this if you notice that your system's performance changes as the battery voltage drops.

Tuning PID controllers is often a matter of trial and error. You may need to repeat these steps and fine-tune these values to get the desired performance. Also, it's important to note that these steps are a simplified version of the process. Depending on the complexity of your system, you may need a more sophisticated approach. */

@JediScoy
Copy link
Member Author

JediScoy commented Mar 28, 2024

Kp and Kv (or Ks?) are likely only useful settings.

See also "Motion Magic Velocity" for flywheel.

@JediScoy
Copy link
Member Author

Combined with #250

@JediScoy JediScoy reopened this Apr 27, 2024
@JediScoy JediScoy moved this to Todo in 3603 Roadmap Apr 27, 2024
@JediScoy JediScoy changed the title VelocityVoltage vs TorqueFOC Learn about and implement a torque control mode Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
research Further information is requested
Projects
Status: Todo
Development

No branches or pull requests

1 participant