Other Parts Discussed in Thread: CONTROLSUITE
I have successfully integrated controller area network code with the pm_sensorless project of the DRV8312-C2-KIT (thankyou Brett Larimore). I can receive messages from the CAN bus and can send out messages too - I send the speed3.EstimatedSpeed variable value, for example.
I can still control the motor from the watch window using EnableFlag, lsw and speedRef.
I now want to set my motor speed from the incoming CAN value. On receipt of a CAN message, I tried setting the EnableFlag, lws and SpeedRef values that I usually use in the watch window, the motor did one kick and stopped!
Can you please tell me whether this strategy for adding user code to pm_sensorless is correct?
If it is OK, can you please let me know which variables I should be setting to get the motor to turn at different speeds and direction?