Skip to main content
Firmware Stable

System debug

Documentation for variables in folder /driver/debug_adc, /driver/core, /driver/debug_diag.

warning
  • The purpose of these states is internal debugging of the control algorithm. It is not targeted to the user.
  • The behavior may be redefined in each release. Do NOT use these variables for any automation.
info

All the variables are state variables.

Debug of the diagnostics​

Debug info for driver diagnostic: /driver/debug_diag.

off_i_a, off_i_c, off_i_b [LSB]​

Offset of current measurement. This offset is identified during the initialization phase. off_i_b is computed from the two other offsets.

ua_scale, uc_scale [LSB]​

Voltage calibration scale for phase A and C. Phase B is used as a reference.

a0_motor_state​

Inferred motor state during A0 diagnostic stage.

ValueDescription
0Motor was steady
1Motor was not connected.
2Motor was moving

vcc, avcc (optional)​

Diagnostic readings of the analog and logic circuitry voltage levels.


Debug of the core (VECTOR)​

Debug info for vector control core: /driver/core.

timstamp.1 - timstamp.7, timsync, and timirq​

Time stamps used for debugging and profiling of the core blocks.

burden [%]​

Driver MCU loading burden.

swdt​

Software watchdog for ISR synchronization. This state participates in raising the "sync error" in /driver/stat

ocv [V]​

AC open-circuit voltage (independent of coordinate transforms). Used for beep scheduling.

inven​

Recirculation equalization mechanism state.

Iqref, Iqrefr [A]​

Q-axis current reference. Input to the q-axis current control loop.

Idref, Idrefr [A]​

D-axis current reference. Input to the d-axis current control loop.

Uqref [V]​

Q-axis voltage reference.

alpha, beta [-1 - +1]​

Reference electrical field angle represented in trigonometric plane.

iasquare, ibsquare, icsquare [A^2]​

Filtered square current values for each phase. Used as an input of the I2R protection.


Debug of the ADC​

Debug info for the ADC: /driver/debug_adc. All the readings are in LSBs and they are unprocessed ADC outputs.

VREFINT​

MCUTEMP​

Reading of the internal MCU temperature sensor.

U_A, U_B, U_C​

Reading of the phase voltages.

I_A, I_B, I_C​

Reading of the phase currents.

U_U​

Reading of the DC bus voltage.

U_Z (optional)​

Synchronously sampled reading of the DC bus voltage.

SIN, COS​

Reading of the motor sensor input. Works only if a motor sensor with analog input is used (sin/cos, resolver).