View Single Post
  #5   Spotlight this post!  
Unread 22-01-2010, 08:44
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 159
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Calling multiple programs...

Quote:
Originally Posted by ringo115 View Post
how do i do it? if we have drive code and we wanna use something like pneumatics code, at the same time, how would we code something, if at all possible , that would allow us to call multiple programs at once.
Excuse me if I'm underestimating your experience, but from your question, it sounds like you just want to know how the robot program can do multiple tasks, right? The other answers above have all addressed how to do multiple tasks in parallel; what you want to do is not necessarily that, but rather to just have one program that can handle many tasks.

If you haven't already, I would suggest you start with the "Getting Started" guide:
http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf
This document explains the basic templates for developing a robot program, and explains how you can use these templates to partition your code into different functional areas and still have them all run under the control of the same program.

Also, look up how to use the various Example programs that are provided with WindRiver in order to see some working examples of these templates.

HTH.
Reply With Quote