Hi Elli and Co.,
Can we let only one motor spin and be connected, or does it have to be two for this project?
Yes, a single motor setup works.
How is the workflow when we want to run this project without the CAN Interface? We understood that it should work similarly to the TI labs but something is not working. When we activate all the debugging settings (Silicon-Realtime, Auto-refresh), start the debugging and then set the enableSys and run_identify to 1, nothing happens. Even when we increase the iqRef_A or activate the enableAlignment.
This is the code I use to test a motor module attached to a TI development board without CAN. Put these lines of code at the beginning of the main function:
gMotorVars[HAL_MTR1].Flag_enableSys = true; // enable the system in general
gMotorVars[HAL_MTR1].Flag_Run_Identify = true; // enable the motor
gFlag_enableVirtualSpring[HAL_MTR1] = true;
This is only for motor 1.
Do we need to change the Debugging configurations?
What do you mean by “Debugging configuration”?
The Virtual Spring Mode doesn’t work, either. We tried enabling the spring mode in the code by setting gFlag_enableVirtualSpring[2] = {true, true} and while debugging in the Expressions View.
When you enable the virtual spring mode, did you also enable the motors and the Flag_Run_Identify
flag (see above)? Just enabling the spring mode is not enough.
All we know is, that the wiring of the motor is correct, because another TI-Project let it spin.
Which ti-project did you try exactly?
In that code there is also a passage about other examples, but we have no access see image
I pinged the author and asked if we can move the code to the open-source github repo.
Best,
Julian