Closed SimonRPSM closed 6 years ago
The issue was found to be related to the conversion to Double.
Softmotion's three options for Stop are a ring that goes from 11599968 to 11599970 which gets rounded off when going to a Double. So I'll subtract and add the 11599968 before and after the conversion.
We realized that even if the Stop method is called, the axis does not actually stop. However, there is no error. After some troubleshooting we realized that the flattening and unflattening of the Parameters is giving a number out that is none of the stop types.
Namely that saying Decelerate gives out a number that when, trying to typecast it, does not actually lead to Decelerate as a case.
I need to think about the best way to work around this.