Skip to content

A Rust implementation of various Field Oriented Control algorithms.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

calebfletcher/foc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FOC

An implementation of Field Oriented Control algorithms in Rust, designed for use in embedded systems.

Goals

  • Modular and extendable implementation of FOC algorithms.
  • Exclusively use fixed-point math for all FOC calculations, using the fixed crate.
  • Support for microcontrollers across the entire embedded Rust ecosystem.
  • Support for microcontroller-specific accelerators (e.g. STM32G4/STM32H7 CORDIC peripheral for trig functions, STM32 FMAC peripheral for filters).
  • Generic over angle sensors, current sensors, and PWM drivers.
  • Straightforward to add custom algorithms.
  • No heap allocations anywhere.

About

A Rust implementation of various Field Oriented Control algorithms.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages