Go to Post FIRST is NOT just about robotics. It is about the growth of leaders - of Gracious Professionals... - MysterE [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2010, 17:28
ringo115 ringo115 is offline
Registered User
FRC #1647
 
Join Date: Jan 2009
Location: New Jersey
Posts: 42
ringo115 is on a distinguished road
Calling multiple programs...

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.
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2010, 19:04
nighterfighter nighterfighter is offline
1771 Alum, 1771 Mentor
AKA: Matt B
FRC #1771 (1771)
Team Role: Mentor
 
Join Date: Sep 2009
Rookie Year: 2007
Location: Suwanee/Kennesaw, GA
Posts: 835
nighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant futurenighterfighter has a brilliant future
Re: Calling multiple programs...

I think you can either use a Notifier or make it a separate task.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2010, 19:11
SCRobotics SCRobotics is offline
Registered User
FTC #3172
 
Join Date: Jan 2010
Location: Salina, Kansas
Posts: 1
SCRobotics is an unknown quantity at this point
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.
Does anyone know where the 2010 Game Animation link is?
-----Help is greatly appreciated.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2010, 08:08
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: 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.
There are many tutorials to help you better understand multi-tasking on the web.
Workbench has a brief introduction to vxWorks and multi-tasking in the help.
Get to the help by clicking Help->Help Contents.
This will bring up a browser because the help is presented as web pages.
In the browser, expand Wind River Documentation, then Guides, then VxWorks Application Programmer's Guide.
Note also that all the guides you see there are also provided as PDFs.
Just look for the little ADOBE icon, which will take you there.
Reply With Quote
  #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: 160
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
Multiple programs/autonomous routines galewind Programming 12 09-01-2004 22:25
Multiple Programs goegan31 Programming 3 17-03-2003 22:56


All times are GMT -5. The time now is 03:29.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi