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

STC_GetMecSpeedRefUnitDefault prototype does not match.

  • July 20, 2023
  • 1 reply
  • 786 views

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.
    Best answer by SRedd.5

    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.