instaspin_foc
|
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 | setupClarke_I (CLARKE_Handle handle, const uint_least8_t numCurrentSensors) |
Sets the number of current sensors. More... | |
void | setupClarke_V (CLARKE_Handle handle, const uint_least8_t numVoltageSensors) |
Sets the number of voltage sensors. More... | |
void | updateGlobalVariables_motor (CTRL_Handle handle) |
Updates the global motor variables. More... | |
void | updateKpKiGains (CTRL_Handle handle) |
Updates Kp and Ki gains in the controller object. 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 |
MATH_vec3 | gAdcBiasI |
MATH_vec3 | gAdcBiasV |
CTRL_Handle | ctrlHandle |
The controller handle. More... | |
CLARKE_Handle | clarkeHandle_I |
the handle for the current Clarke transform More... | |
CLARKE_Obj | clarke_I |
the current Clarke transform object More... | |
CLARKE_Handle | clarkeHandle_V |
the handle for the voltage Clarke transform More... | |
CLARKE_Obj | clarke_V |
the voltage Clarke transform object More... | |
EST_Handle | estHandle |
the handle for the estimator More... | |
IPARK_Handle | iparkHandle |
the handle for the inverse Park transform More... | |
IPARK_Obj | ipark |
the inverse Park transform object More... | |
PARK_Handle | parkHandle |
the handle for the Park object More... | |
PARK_Obj | park |
the Park transform object More... | |
SVGEN_Handle | svgenHandle |
the handle for the space vector generator More... | |
SVGEN_Obj | svgen |
the space vector generator object 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 | gFlux_pu_to_Wb_sf |
_iq | gFlux_pu_to_VpHz_sf |
_iq | gTorque_Ls_Id_Iq_pu_to_Nm_sf |
_iq | gTorque_Flux_Iq_pu_to_Nm_sf |