Skip to content

Prevent unintended float-to-double casts #100

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

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

sDessens
Copy link
Contributor

@sDessens sDessens commented Jul 1, 2021

There are a few doubles left:

One explicit cast in Encoder::HandleIndex. I think this function can be implemented without any floating point math, but I don't have a test setup for this encoder.

There are various explicit float-to-double casts in esp32_mcu and due_mcu. These are in non-critical code paths only used during setup.

@askuric askuric merged commit 886f571 into simplefoc:dev Jul 20, 2021
@askuric
Copy link
Member

askuric commented Jul 20, 2021

Thanks I'm merging!

@sDessens sDessens deleted the no_more_doubles branch August 24, 2022 19:00
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.

2 participants