Go to Post Sorry, solenoids don't speak English. You can talk at them, but they won't answer except maybe to sigh... - Mark McLeod [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-12-2013, 10:47 PM
VCEmblem VCEmblem is offline
Registered User
FRC #3880
 
Join Date: Feb 2013
Location: Kailua-Kona
Posts: 2
VCEmblem is an unknown quantity at this point
Tasks in C++

Hello. My team has been needing to perform more than one function for competition, however, we have absolutely no idea how to multitask in Wind River. We've created a function that calculates the angle needed for our shooter to throw Frisbees directly into the goal.

We've experimented with using functions before, but when we use them user control is unresponsive until the function ends. To solve this in the past in RobotC for VEX, we've used multitasking to run functions while performing other tasks. My programming team and I have been attempting to use multitasking for FRC this year, yet we're clueless on how to proceed.

Here's our current version of the code: http://pastebin.com/RWhNkMXY
The segment of code in question is the function called "shoot." We want to be able to run that function as a separate task.

Any help and suggestions would be much appreciated
Reply With Quote
 


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


All times are GMT -5. The time now is 10:07 AM.

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