foc

Crates.iofoc
lib.rsfoc
version0.3.0
sourcesrc
created_at2024-01-06 07:09:33.121689
updated_at2024-06-02 05:43:20.77118
descriptionAn implementation of various Field Oriented Control algorithms.
homepagehttps://github.com/calebfletcher/foc/
repositoryhttps://github.com/calebfletcher/foc/
max_upload_size
id1090786
size79,282
Caleb Fletcher (calebfletcher)

documentation

README

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.
Commit count: 28

cargo fmt