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

Simplify foc fpu math #372

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Commits on Nov 7, 2021

  1. [MCPWM_FOC] Eliminate repeated divisions

    `/((2.0/3.0) * v_bus)` is the same as `* 1.5/V_bus`. Abstracting this out
    saves at least one division per loop, and in some cases as many as three.
    
    Each STM32F4 FPU division takes 14 cycles.
    kubark42 committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    6dbea7e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80adea0 View commit details
    Browse the repository at this point in the history