I am getting a runtime error when I try to fire an event using a trigger with parameters using a custom enum.
For example:
_MotionMachine.Fire(_RotateCardinalPosition_ParamTrigger, CardinalPos, TimeOut);
where CardinalPos is an enum with its values set to integers, and TimeOut is a double
There error message states:
The argument in position 0 is of type GyroTesterPlus.KFLOP_Motion+CardinalPositions but must be of type System.Double.
If I re-write the logic to use a double instead of CardinalPositions, it works fine. Am I missing something?