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

CTL - Updated Levitation Control #77

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

mostafam99
Copy link

@mostafam99 mostafam99 commented Feb 9, 2025

Keep as Draft PR until more info from Levitation

@jpfbastos jpfbastos changed the title modified pid design and added low pass filter CTL - Updated Levitation Control Feb 9, 2025
@jpfbastos jpfbastos self-requested a review February 9, 2025 15:03
Copy link

linear bot commented Feb 9, 2025

@jpfbastos jpfbastos marked this pull request as draft February 9, 2025 15:05
Copy link
Contributor

@jpfbastos jpfbastos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Only these minor fixes, but otherwise you're good

@mostafam99 mostafam99 self-assigned this Feb 9, 2025
@jpfbastos
Copy link
Contributor

Cool - we'll show lev this next week to see what they think

Copy link
Collaborator

@davidbeechey davidbeechey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job, looks promising - hopefully it's what levitation are looking for :)

Copy link
Collaborator

@davidbeechey davidbeechey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split out the PID logic into a new PID crate:

  • simplifies the code in this file
  • makes it easier for you to unit test the PID logic

@@ -0,0 +1,133 @@
use core::f32;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JP here - Basically it was there because we use f32::NAN for initialising the pre_error. I thought the normal version was using standard library, so I was using the core version. However, both the core and std versions are deprecated, and they're being just stored in the f32 primitive, so it can be scrapped and we can use f32::NAN by itself

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.

3 participants