-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
Cool - we'll show lev this next week to see what they think |
There was a problem hiding this 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 :)
There was a problem hiding this 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
lib/control/src/pid_controller.rs
Outdated
@@ -0,0 +1,133 @@ | |||
use core::f32; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here?
There was a problem hiding this comment.
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
Keep as Draft PR until more info from Levitation