Go to Post So we developed AI... it figured out the clue... already... made itself accordingly... and is currently walking to the peachtree regional if you find him ask him what the objectives are, we'd sure like to know! - Collmandoman [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 11-11-2010, 16:33
johncap100 johncap100 is offline
Registered User
FTC #0658
 
Join Date: Aug 2009
Location: Capital High School
Posts: 95
johncap100 is an unknown quantity at this point
[FTC]: FCS and autonomous

Got another question. We have the FCS up and running and have tried just one robot to see if all works. I have shut off autonomous to try it, It works well in Teleop. So I wanted to see if we could get the autonomous to work with FCS.

Do we need to have two different programs loaded on the NXT in order to use autonomous with the FCS. Last year we used two different programs, an autonomous and a teleop. When got to the field we started the autonomous program on the NXT and then waited for the field system to start the bots.

What is the process this year, I looked through the documentation for the FCS, but alittle unclear

thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 11-11-2010, 21:57
ssi ssi is offline
Registered User
AKA: David Spangler
FTC #2843 (Under the Son)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Hollywood, MD
Posts: 34
ssi will become famous soon enough
Re: [FTC]: FCS and autonomous

Basically, it works the same way. When you get to the field, you will turn on your robot. It should connect to the FCS and you will start your autonomous. The FCS will then start the match.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-11-2010, 09:25
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: [FTC]: FCS and autonomous

To expand on what sii said, yes, you will use two programs, an autonomous and a teleop, you will set the robot on the field, start your auto, the fcs enables auto, then your program chooser automatically switches it to teleop when the time comes.
__________________
"Don't worry, programming can fix it"
Reply With Quote
  #4   Spotlight this post!  
Unread 12-11-2010, 09:25
johncap100 johncap100 is offline
Registered User
FTC #0658
 
Join Date: Aug 2009
Location: Capital High School
Posts: 95
johncap100 is an unknown quantity at this point
Re: [FTC]: FCS and autonomous

I kind of thought so too, but it seems to me last year we loaded two programs onto the NXT before the competition. and then when we started the matches we could call both programs in the FCS or FMS. This year I see no place to call both programs?

clairfication from you point would be great

thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 12-11-2010, 09:35
iblis432 iblis432 is offline
Co Captain/Chief Programmer
AKA: Bobby
FRC #2106 (Junkyard Dogs)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Virginia
Posts: 146
iblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to beholdiblis432 is a splendid one to behold
Re: [FTC]: FCS and autonomous

You can call teleop (well, you have to call teleop) using the program chooser, but auto must be started using the NXT brick before pressing enable, but after connecting to the FCS (starting it before connection seems to turn off the program, but only sometimes, it's picky)
__________________
"Don't worry, programming can fix it"
Reply With Quote
  #6   Spotlight this post!  
Unread 12-11-2010, 09:42
ssi ssi is offline
Registered User
AKA: David Spangler
FTC #2843 (Under the Son)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Hollywood, MD
Posts: 34
ssi will become famous soon enough
Re: [FTC]: FCS and autonomous

Yes you will have two (or more depending on how you work your multiple autonomous options) routines on your NXT (three if you count samostat). Your team will start your autonomous routine when you get to the field. The Samantha FCS will enable the robot at the beginning of autonomous. At the end of autonomous, it will stop the running program and start the telop routing you have specified on the NXT. If I remember correctly, the name is specified in FTCCONFIG.TXT (don't quote me on that file name). This file is created either by the joystick control window in RobotC or by running the program chooser application (the same as last year). Basically it works the same as last year. Don't forget, in addition to these file, you can include a graphic file "team.gif" that the Samantha FCS can retrieve from the NXT to display on the timer display during the competition.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-11-2010, 16:44
johncap100 johncap100 is offline
Registered User
FTC #0658
 
Join Date: Aug 2009
Location: Capital High School
Posts: 95
johncap100 is an unknown quantity at this point
Re: [FTC]: FCS and autonomous

Ok beginning to make some sense. In the program chooser on the NXT, is what I think you are referring to when you say program chooser. So I can choose a teleop program on the NXT, and then go to the autonomous program on the NXT and run it. So the chooser on the NXT can keep track of the program you choose for the teleop and also run the autonomous program?
THe FCS then just calls the two programs you choose>

Is that correct?
Reply With Quote
  #8   Spotlight this post!  
Unread 12-11-2010, 19:57
ssi ssi is offline
Registered User
AKA: David Spangler
FTC #2843 (Under the Son)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Hollywood, MD
Posts: 34
ssi will become famous soon enough
Re: [FTC]: FCS and autonomous

You are getting closer..

The program chooser application asks you to select your autonomous program. It then creates a text file on the NXT with that program name. The FCS is able to read that file and uses it to determine what teleop program to run. Your team will start the autonomous when you get to the field. The FCS does not start the autonomous program, it only sends the packets that tell the software template if the robot is enabled or not and what the joystick commands are.

Really, it is exactly the same as in previous years.
Reply With Quote
  #9   Spotlight this post!  
Unread 13-11-2010, 04:47
NalaTI NalaTI is offline
Registered User
AKA: Alan
FTC #2848 (Techno Guards)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2005
Location: California
Posts: 106
NalaTI is just really niceNalaTI is just really niceNalaTI is just really niceNalaTI is just really nice
Re: [FTC]: FCS and autonomous

Quote:
Originally Posted by ssi View Post
You are getting closer..

The program chooser application asks you to select your autonomous program. It then creates a text file on the NXT with that program name.
<snip>
Really, it is exactly the same as in previous years.
Actually, you use the program chooser application to select the teleop... which is put into the file on the NXT...

But, yes, it is the same as previous years.
__________________
Reply With Quote
  #10   Spotlight this post!  
Unread 13-11-2010, 05:27
ssi ssi is offline
Registered User
AKA: David Spangler
FTC #2843 (Under the Son)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Hollywood, MD
Posts: 34
ssi will become famous soon enough
Re: [FTC]: FCS and autonomous

NalaTI, thanks for the correction. Thats what I get for typing in a hurry when I should be loading robots in the trailer for a demonstration the next day.
Reply With Quote
  #11   Spotlight this post!  
Unread 15-11-2010, 13:50
tdressel tdressel is offline
Registered User
FRC #1111
 
Join Date: Feb 2008
Location: Edgewater
Posts: 50
tdressel is an unknown quantity at this point
Re: [FTC]: FCS and autonomous

I'm new to FTC and I'm looking for a clear cut set of steps or sequence in regards to autonomous. I'd like to list out what "I THINK" would happen in a competition and if you would, let me know where I'm offbase.

SETUP:
1. Prior to a competition, for simplicity, I have a single Autonoums (AutoX) program and a single Tele program (TeleX). Our NXT will have firmware v1.28 on it with three programs: Program_Chooser, AutoX and TeleX. We have two other VI's (Samostat.vi & Comm_Status.vi) as well but there are not part of the question I have. Lastly, we have a team.gif file to indicate our team logo.

2. Also, prior to a competition, we've setup our Samantha unit to be using the same wireless network as the FCS comptuer mentioned below. Life is good in regards to the Samantha unit.

3. Using Program_Chooser, we select TeleX for our teleoperated program

4. FCS: There is a single computer with four game controllers and it's running FCS. That computer is either directly wired to a router or uses wireless for connecting to the same network. We are just one team of four. The person running the competition correctly assigns the four teams via selecting the corresponding Samantha unit (I assume each team will run SamoStat.vi on the NXT to tell the person our IP address).

5. Our robot is put in place on the competition mat.

6. NOW... this is my question... do I instruct our student to select (on the NXT itself) the AutoX program for our autonomous and hit the orange button to run it? Theoretically, our robot is all setup in regards to the FCS.

My problem is that I don't know how to select a program to run as autonomous without selecting it on the NXT itself. When I do that - it runs (okay, that's expected). But at competition, how is it that I select the autonoumous and yet the FCS kicks it off?

My vision is that there are four team's all with their autonomous program selected and at the count of three - they all press the button on their NXT at the same time. But... I'm thinking that's wrong and that "SOMETHING" on the FCS program will kick off the autonomous program.

Comments/suggestions on how to test this out?


-Ted Dressel, FTC Programming Mentor
__________________
Ted Dressel, Mentor, Team 1111
Reply With Quote
  #12   Spotlight this post!  
Unread 15-11-2010, 14:05
ssi ssi is offline
Registered User
AKA: David Spangler
FTC #2843 (Under the Son)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Hollywood, MD
Posts: 34
ssi will become famous soon enough
Re: [FTC]: FCS and autonomous

So far you have a pretty good handle on this. A couple clarifications...

In Step 4, the computer will have 8 game controllers (2 per team) and the computer is supposed to be wired directly to the router. Also, all the FCS operator needs is your team number, it will then be able to determine the IP address and initiate the connection.

In Step 6, yes your students start execution on the NXT of the autonomous program. The program will run waiting for a packet from the FCS to tell them that they are enabled. When the FCS starts the match, it will send a packet to all the robots enabling the autonomous routines (ie they will exit their wait loop). At the end of autonomous, the FCS will halt the autonomous routine and start the Teleop. The Teleop routine will sit in its wait loop until the FCS sends the enable packet at the begining of the Teleop phase of the match. All throughout the match, the FCS will be sending packets with all the joystick commands.
Reply With Quote
  #13   Spotlight this post!  
Unread 15-11-2010, 16:01
pbesen pbesen is offline
Registered User
FTC #3167
 
Join Date: Nov 2010
Location: massachusetts
Posts: 5
pbesen is an unknown quantity at this point
Re: [FTC]: FCS and autonomous

Ted,

One other item that may have been missed. Your autonomous program needs to integrated into the autonomous template that is provided (which you can find under sample programs (robotc). You will see that this template has a "wait for start" function.

When you start your autonomous program it will wait at this function until the FCS system starts all the programs.
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]: some FCS questions johncap100 FIRST Tech Challenge 5 08-11-2010 11:40
[FTC]: Autonomous? JohnFogarty FIRST Tech Challenge 32 12-03-2010 23:07
[FTC]: Gamepad won't setup on FCS Bluedog24 FIRST Tech Challenge 10 13-02-2010 18:09
[FTC]: Autonomous saaby FIRST Tech Challenge 8 19-02-2009 12:45
[FTC]: FTC Controller Station Connectivity (Bluetooth and USB) Issue jbbjjbt FIRST Tech Challenge 6 05-11-2008 11:49


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

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