Skip to main content
SRedd.5
Senior III
July 20, 2023
Solved

STC_GetMecSpeedRefUnitDefault prototype does not match.

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? 

 

    This topic has been closed for replies.
    SRedd.5
    SRedd.5Best answer
    Senior III
    July 20, 2023

    Sorry my mistake

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

    1 reply

    SRedd.5
    SRedd.5AuthorBest answer
    Senior III
    July 20, 2023

    Sorry my mistake

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