![]() |
miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
|
| ▼ algorithm | |
| encoder.c | This file contains the code implementation of angle acquisition and initialization functions of sc60228 and sc60224 |
| encoder.h | This is the header file of encoder.c |
| fast_math.c | This file contains the code implementation of sine function value lookup table and fast calculation of sine value |
| fast_math.h | This is the header file of fast_math.c, the macros of fast amplitude limiting algorithm and cosine function evaluation algorithm are defined |
| filter.c | This file contains the code implementation of first-order digital RC low-pass filter algorithm and the code implementation of low-pass filter coefficient calculation |
| filter.h | This is the header file of filter.c, which defines the structure of filter algorithm |
| foc.c | This document is mainly the code implementation of motor phase sequence correction and FOC algorithm |
| foc.h | This is the header file of foc.c, which defines the structure of FOC algorithm and angle conversion factor |
| pid.c | PID algorithm implementation source code |
| pid.h | This is the header file of pid.c, which defines the structure of PID algorithm and closed-loop state macro |
| report.c | This file is used to write the report correlation function of the feedback host computer |
| report.h | This is the header file of report.c |
| ▼ build | |
| ▼ CMakeFiles | |
| ▼ 3.22.3 | |
| ▼ CompilerIdC | |
| CMakeCCompilerId.c | |
| ▼ hardware | |
| flash.c | This file contains the code implementation of on-chip flash reading, writing and erasing, as well as storing and reading user configurations |
| flash.h | This is the header file of flash.c |
| led.h | This file contains macros for LED initialization and related IO port operations |
| spi.c | This file contains the initialization of SPI peripherals and the code implementation of reading and writing half words |
| spi.h | This is the header file of spi.c |
| timer.c | This file contains the code implementation of timer initialization and disable timer function and setting timer comparison value |
| timer.h | This is the header file of timer.c |
| uart.c | This file contains the code implementation of UART interface initialization function and medium capacity transmission protocol transceiver function |
| uart.h | This is the header file of uart.c |
| ▼ system | |
| gd32f1x0_it.c | Gd32f1x0 interrupt handler function source file |
| gd32f1x0_it.h | Gd32f1x0 interrupt handler function header file |
| main.h | Main function Header File |
| system.c | System basic function source file |
| system.h | System basic function header file |
| config.h | Used to place important parameter configurations for users |
| error.h | Used to check whether the user configured parameters conflict |
| main.c | MiniFOC main source file, The relevant operations and main function after unpacking of medium capacity transmission protocol are implemented in this document |