I am trying to run in Torque mode at start up before switching over to Speed Control. I'm trying to use EST_getForceAngleStatus() as the trigger to change over but it's returning alot of incorrect results. Both at 0 speed and at speeds close to 4kRPM (466Hz) it's pretty close to 50/50.
This is the code I inserted at the end of mainISR() in Lab 4 to monitor it.
if (EST_getForceAngleStatus(ctrlObj->estHandle) == true)
{
forcedCount++;
}
else
{
notForced++;
}
Other than that I haven't changed anything. Am I missing something obvious?