This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Lab03b: bias values in HAL object don't match offset values from user.h

Hi,

I am new to InstaSpin and have troubles with Lab03b / Motorware17. The bias values within the HAL object don't match my values in user.h. The Motor spins fine.

Problem is the same when using 28069M Launchpad with 8305 Boosterpack with Teknic_M2310PLN04K or the High Voltage Kit with a custom motor.

This are my values from user_j1.h when using the Launchpad 28069M with the 8305 Boosterpack:

//! \brief ADC current offsets for A, B, and C phases
//! \brief One-time hardware dependent, though the calibration can be done at run-time as well
//! \brief After initial board calibration these values should be updated for your specific hardware so they are available after compile in the binary to be loaded to the controller
#define   I_A_offset    (1.001685619)
#define   I_B_offset    (1.001424193)
#define   I_C_offset    (1.001255631)

//! \brief ADC voltage offsets for A, B, and C phases
//! \brief One-time hardware dependent, though the calibration can be done at run-time as well
//! \brief After initial board calibration these values should be updated for your specific hardware so they are available after compile in the binary to be loaded to the controller
#define   V_A_offset    (0.4162086248)
#define   V_B_offset    (0.4167221785)
#define   V_C_offset    (0.4167410135)

After setting Flag_enableSys and Flag_Run_Identity to true I get completely different bias values for the HAL object:

Probably I'm doing something wrong here - maybe someone can help?

Thanks a lot

Gerhard