Skip to content

Foc constructor not shown in docs.rs #2

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

Closed
Ben-PH opened this issue May 28, 2024 · 2 comments
Closed

Foc constructor not shown in docs.rs #2

Ben-PH opened this issue May 28, 2024 · 2 comments

Comments

@Ben-PH
Copy link

Ben-PH commented May 28, 2024

It's weird, but at time of writing, foc::Foc::new is not coming up: https://docs.rs/foc/latest/foc/struct.Foc.html

I think it's because it was added as part of commit e4bf72f, but that commit didn't come with a version bump.

This is problematic, in that Foc has private fields, so cannot be constructed without a method, but when you search docs.rs for Foc and check return types, there is nothing, nor could I find a way to access one through a field of another struct.

@calebfletcher
Copy link
Owner

That is correct, see the last bit of my reply here #1 (comment). I'll be looking to make a new release soon which should have the Foc struct usable from user-facing code and with more robust PI controllers.

@calebfletcher
Copy link
Owner

I've released version 0.3.0 which includes the constructor for foc::Foc and for the pid::PIController that you need for that struct.

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

No branches or pull requests

2 participants