Quote:
Originally Posted by DjMaddius
Can someone explain to me how to do the VxWorks tasks?
Currently our code isnt working.
Task loopingTask("SpinTask", (FUNCPTR)(int(PneumaticSystem::lop)));
Doesnt work.
Get error "error: argument of type `int (PneumaticSystem:  ()' does not match `int (*)(...)'"
|
Looks like you've got a smiley face in there somewhere.
Why did you insert 'int' right in front of the left paren?
Are you trying to cast (PneumaticSystem::lop)?
The FUNCPTR macro should be all the cast you need.