LabVIEW-DCAF / MotionModule

The DCAF Softmotion module is aimed towards simplifying the experience of creating embedded motion systems.
Apache License 2.0
2 stars 1 forks source link

Axis do not stop even if the method is called #53

Closed SimonRPSM closed 6 years ago

SimonRPSM commented 6 years ago

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.

SimonRPSM commented 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.