Using custom Enum's with a trigger with parameters

64 views
Skip to first unread message

Chris Marrs

unread,
Feb 7, 2014, 6:00:55 PM2/7/14
to dotnet-state-ma...@googlegroups.com
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?

Chris Marrs

unread,
Feb 10, 2014, 10:59:46 AM2/10/14
to dotnet-state-ma...@googlegroups.com
Oops, double post.  Feel free to delete this topic.
Reply all
Reply to author
Forward
0 new messages