cancel
Showing results for 
Search instead for 
Did you mean: 

STC_GetMecSpeedRefUnitDefault prototype does not match.

SRedd.5
Senior III

The definition of the function is 

__weak int16_t STC_GetMecSpeedRefUnitDefault(SpeednTorqCtrl_Handle_t *pHandle) in speed_torq_ctrl.c file.

It is called in mc_tasks.c as below

STC_GetMecSpeedRefUnitDefault(pSTC[M1]),0);

it is called with additional 0 argument, why? What is the purpose of 0? 

 

1 ACCEPTED SOLUTION

Accepted Solutions
SRedd.5
Senior III

Sorry my mistake

MCI_ExecSpeedRamp(&Mci[M1],STC_GetMecSpeedRefUnitDefault(pSTC[M1]),0); got it.

View solution in original post

1 REPLY 1
SRedd.5
Senior III

Sorry my mistake

MCI_ExecSpeedRamp(&Mci[M1],STC_GetMecSpeedRefUnitDefault(pSTC[M1]),0); got it.