instaspin_foc
|
All control from user code, only FAST™ feedback from ROM. More...
Go to the source code of this file.
Macros | |
#define | LED_BLINK_FREQ_Hz 5 |
Functions | |
void | main (void) |
interrupt void | mainISR (void) |
The main interrupt service (ISR) routine. More... | |
void | updateGlobalVariables_motor (CTRL_Handle handle) |
Updates the global motor variables. More... | |
void | CTRL_resetLs_qFmt (CTRL_Handle handle, const uint_least8_t Ls_qFmt) |
Reset Ls Q format to a higher value when Ls identification starts. More... | |
void | recalcKpKiPmsm (CTRL_Handle handle) |
Recalculate Kp and Ki gains to fix the R/L limitation of 2000.0 and Kp limitation of 0.11. More... | |
void | CTRL_calcMax_Ls_qFmt (CTRL_Handle handle, uint_least8_t *pLs_qFmt) |
Calculates the maximum qFmt value for Ls identification, to get a more accurate Ls per unit. More... | |
void | recalcKpKi (CTRL_Handle handle) |
Recalculate Kp and Ki gains to fix the R/L limitation of 2000.0 and Kp limitation of 0.11. More... | |
void | setFeLimitZero (CTRL_Handle handle) |
Set electrical frequency limit to zero while identifying an induction motor. More... | |
void | acim_Dir_qFmtCalc (CTRL_Handle handle) |
Calculates Dir_qFmt for ACIM. More... | |
Variables | |
uint_least16_t | gCounter_updateGlobals = 0 |
A counter that is denotes when to update the global variables. More... | |
bool | Flag_Latch_softwareUpdate = true |
CTRL_Handle | ctrlHandle |
The controller handle. More... | |
HAL_Handle | halHandle |
The hal handle. More... | |
USER_Params | gUserParams |
The user parameters. More... | |
HAL_PwmData_t | gPwmData = {_IQ(0.0), _IQ(0.0), _IQ(0.0)} |
Defines the PWM data. More... | |
HAL_AdcData_t | gAdcData |
Defines the ADC data. More... | |
_iq | gMaxCurrentSlope = _IQ(0.0) |
CTRL_Obj | ctrl |
Defines the CTRL object. More... | |
uint16_t | gLEDcnt = 0 |
volatile MOTOR_Vars_t | gMotorVars = MOTOR_Vars_INIT |
_iq | gLs_pu = _IQ30(0.0) |
uint_least8_t | gLs_qFmt = 0 |
uint_least8_t | gMax_Ls_qFmt = 0 |
All control from user code, only FAST™ feedback from ROM.
(C) Copyright 2011, Texas Instruments, Inc.
Definition in file proj_lab02c.c.