Thread: Tasks?
View Single Post
  #2   Spotlight this post!  
Unread 23-02-2010, 20:39
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Tasks?

Quote:
Originally Posted by DjMaddius View Post
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.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote