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.
|
used to place important parameter configurations for users More...
Go to the source code of this file.
Macros | |
#define | VBUS 8.0f |
bus voltage is 8.0V More... | |
#define | POLAR_PAIRS 7 |
set BLDC polar pairs to 7 More... | |
#define | ENCODER_RESO 4096 |
SC60228 resolution is 2^8 = 4096. More... | |
#define | CALI_TORQUE 0.5f |
set calibrate torque to 0.5 More... | |
#define | USE_SVPWM 1 |
Not using space vector pulse width modulator. More... | |
#define | UART_BAUDRATE 512000 |
set UART baud rate to 512000 More... | |
#define | PWM_FREQUENCY 20 |
set PWM frequency to 20kHz More... | |
#define | TIM2_FREQUENCY 8 |
set FOC loop frequency to 8kHz More... | |
#define | TIM13_FREQUENCY 100 |
set speed/angle PID loop frequency to 100Hz More... | |
#define | SPEED_UP_FREQ 200 |
set speed update frequency to 200Hz More... | |
#define | SPI_PRESCALE SPI_PSC_16 |
set SPI frequency to 72 / 16 = 4.5MHz More... | |
#define | UART_PRIORITY 1 |
UART preemption priority set to 1. More... | |
#define | TIM2_PRIORITY 2 |
TIMER2 preemption priority set to 2. More... | |
#define | TIM13_PRIORITY 3 |
TIMER13 preemption priority set to 3. More... | |
#define | FMC_WRITE_START_ADDR 0x08007C00UL |
User flash space start address, 1KB user flash. More... | |
used to place important parameter configurations for users
Definition in file config.h.
#define FMC_WRITE_START_ADDR 0x08007C00UL |
#define SPEED_UP_FREQ 200 |
#define SPI_PRESCALE SPI_PSC_16 |
#define TIM13_FREQUENCY 100 |
#define TIM13_PRIORITY 3 |
#define TIM2_PRIORITY 2 |
#define USE_SVPWM 1 |