Go to Post I would contend that you cannot have a consistently good robot without equally good teambuilding. - jonathan lall [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
  #3   Spotlight this post!  
Unread 25-01-2010, 21:47
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: Robot Main.vi

Perhaps the instructor is familiar with FTC where the FMS launches and aborts top level programs. For FRC, it doesn't do this. It is the team's job to start their own program and to pay attention to the control packets. To assist, the WPI libraries and sample code help to schedule code according to the packets.

It is not required to use RobotMain, and the elements for constructing it are in the palette as well. In reality, you don't even need to modify RobotMain, but instead need to modify the Team Code folder. For example, Begin.vi is where you init any I/O you will use and store the references. Teleop is where you use the references and input from joysticks and driver station I/O to update the motors and outputs. Autonomous Independent is what I'd recommend you start with since you don't need to worry about the protocol. The framework will start and stop the VI for you.

Build dashboard data is where you can decide what to send to the dashoard. Finish is where you can release the I/O refnums.

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
Basic Robot Main vi chinckley NI LabVIEW 7 03-03-2009 15:54
Using Robot Main LiLFiL Programming 1 14-02-2009 18:51
Coordinating Robot Main VI with Autonomous VI jjauss Programming 2 07-02-2009 09:26
Dashboard and Robot main with Axis camera Team2883 General Forum 9 10-01-2009 07:35
main.c 6600gt Programming 3 29-08-2006 02:19


All times are GMT -5. The time now is 22:44.

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