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

Actually finish the flight controller #52

Open
yameatmeyourdead opened this issue Feb 15, 2025 · 0 comments · May be fixed by #55
Open

Actually finish the flight controller #52

yameatmeyourdead opened this issue Feb 15, 2025 · 0 comments · May be fixed by #55
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@yameatmeyourdead
Copy link
Contributor

Cascaded PID controller
Steps:

  • Position PID to calculate desired velocity.
  • Velocity PID to calculate desired force.
  • V_desired = PID(P_desired-P_measured)
  • F_des = PID(V_desired-V_measured)
  • G*T=F_des
    [6x8] [8x1]=[6x1]
    G is full-rank:
  • T = G^+ F_des

Use published T200 data to map T -> U where U is pwm required for the desired thrust.
Might want a QP optimizer here for T?
min T (G*T - F)^2 s.t. T_min <= T <= T_max
@Hermanoid thoughts?

@yameatmeyourdead yameatmeyourdead added enhancement New feature or request help wanted Extra attention is needed labels Feb 15, 2025
@yameatmeyourdead yameatmeyourdead linked a pull request Feb 22, 2025 that will close this issue
@yameatmeyourdead yameatmeyourdead linked a pull request Feb 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants