Go to Post Gears will win matches. Climbing will win events. Fuel will win championships. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 30-12-2009, 21:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: New Programmer looking for some help!

Another thing that hasn't been mentioned is that you are putting a long loop into the autonomous iterative callback. There are two supported ways of doing the autonomous -- iterative and independent.

The independent is somewhat easier to use for things like this. You enter your loop and use the Delay & Feed VI to time the movements in the loop. If you open the autonomous independent, there is code very similar to this already present, but turned off with a case structure and a constant. The independent runs until the DS or FMS ends the auto and disables the robot.

The iterative is supposed to return within 20ms so that the next packet can cause your callback to be called again. Technically, you can do this with the iterative, you you'll need to make some state data such as a global to keep track of the existing state and to trigger new state changes on some of the calls.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Team 326 Looking for some Part help nikeairmancurry Kit & Additional Hardware 4 03-10-2008 02:11
Please help with some questions~new programmer bilal1219 Programming 2 29-01-2008 11:44
Looking for some help with buttons and pins... Amanda Morrison General Forum 4 26-02-2003 17:32
Im looking for a video card and need some help D.J. Fluck Chit-Chat 21 04-08-2002 10:53
Help for New Programmer Mike375 Programming 3 27-09-2001 09:04


All times are GMT -5. The time now is 20:49.

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