another question:
if I try to compile this two rows
if (FRO < 0.1) FRO = StopCoordinatedMotion();
if (SSO < 0.1) SSO = StopCoordinatedMotion();
Validate reports no errors or warnings, Ti Compiler reports this error:
error: a value of type "void" cannot be assigned to an entity of type "double"
what's the reason?
If you look at the definition of the function StopCoordinatedMotion()
Code:
void StopCoordinatedMotion(void); // bring any coordinated motion to a emergency stop ASAP
it has a return type of void which means it doesn't return anything so you can not store the returned value into a variable.