Other Parts Discussed in Thread: MOTORWARE
Hey TI - i have a F280049C MCU with a DRV8343s driver. I am running CCS vs 9.3.0.00012 and MotorControl 2_01_00_00.
I am able to identify my motor using Lab is05 without issue. Once the motor is identified (and without exiting), i restart the motor by setting the motorVars.flagRunIdentAndOnLine flag = true. No issues, the motor starts and goes to motorVars.speedRef_Hz speed setting. The problem i have is the motorVars.accelerationMax_Hzps does not work (i.e., it does not control motor acceleration/deceleration). Can you please tell me how i can control motor acceleration/deceleration in this lab?
I tried setting acceleration using EST_setAccel_rps2(estHandle,(float32_t)2.0) without success.
I also set the following in the main loop:
if(HAL_getTimerStatus(halHandle, HAL_CPU_TIMER1))
{
motorVars.timerCnt_1ms++;
HAL_clearTimerFlag(halHandle, HAL_CPU_TIMER1);
Accel = EST_getAccel_rps2(estHandle);
}
The Accel return value seems to be some random number (i.e., this function does not seem to be returning the acceleration setting).
Thanks!
Brett