Skip to content

foc_utils: Fix unintended double conversion.#521

Open
jaguilar wants to merge 1 commit intosimplefoc:devfrom
jaguilar:dev
Open

foc_utils: Fix unintended double conversion.#521
jaguilar wants to merge 1 commit intosimplefoc:devfrom
jaguilar:dev

Conversation

@jaguilar
Copy link
Copy Markdown

@jaguilar jaguilar commented Apr 3, 2026

Description

fmod takes a double and returns a double, which requires two conversions that are expensive on many MCUs. fmodf is the correct function to call here.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Compilation only.

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.

1 participant