Go to Post If the refs are not calling something that you think should be called, you have to adjust your play style to deal with it. - Rob [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-01-2009, 08:37
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
[FTC]: New LabView Templates

Ftctraining.com has new LabView and NXT-G templates. See here for the LabView:

http://www.education.rec.ri.cmu.edu/...view/index.htm

Now if only someone (HINT) could add in Phils battery code.

Now I have a question, Am I the only one that doesn't believe a disable command will stop any of the templates in autonomous? It seem that anything you put in the autonomonus section will completely run before the bluetooth is checked again for a disable command. It seems some sort of parallel loop needs to be added to check the bluetooth and disable the autonomous. To me the teleop works because you continuously loop through the code and check for the disable command.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2009, 15:28
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: New Templates MANDATORY

According to the FIRST website the new templates are mandatory!!!!

http://www.usfirst.org/community/ftc...t.aspx?id=6650
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2009, 09:56
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: New LabView Templates

Quote:
Originally Posted by jbbjjbt View Post
Now I have a question, Am I the only one that doesn't believe a disable command will stop any of the templates in autonomous? It seem that anything you put in the autonomonus section will completely run before the bluetooth is checked again for a disable command.
I agree 100%. I'm all for well defined rules and consistency, but these new templates are no better than the last ones.

There are some real wacky things in them: But before I start done that list... remember that they are only "Templates". They cannot be run "as-is", especially the Autonomous one. Therefore by definition they need stuff added to them. Since I have yet to be able to get a defined list of what is, and is not permitted in the code I don't really see how they provide much more than a "guideline" for code development.

So to follow that up with examples....

Teleop template

1) The Teleop template makes the assumption that the single motor controller and single servo controller are plugged into a single NXT port.
We have two motor controllers (rule legal) and I have all three of my Hitechnic controllers plugged into different NXT ports. So right away I can't use the template "AS-IS." We either need to add more port/controller wires, or (as we chose to do) we encapsulate my drive and servo commands into their own VI's so I don't need to pass around all those constants. (Please don't force me to dumb down our code)

2) The teleop template displays the words "TeleOperated Code" on the NXT screen... every time around the loop. Yet this never changes, so why waste those valuable CPU cycles. Once at startup should be enough.

3) In the teleop template, the Mode flag (tele/auto) from the Contol station is being passed into the inner most case block, but not being used. So, if the program was started incorrectly during the Autonomous period, it would teleop code anyway..
I can't tell if the creator wants us to emebed Auto code in here or not..... the instructions imply NO, but the code implies YES..

Auto Template

1) The Auto template makes the assumption that the single motor controller and single servo controller are plugged into a single NXT port. Same argument as before.

2) The Auto template displays the words "Autonomous code is..." on the NXT screen... every time around the loop. Same argument as before.

3) The Mode flag (tele/auto) from the Contol station, AND data from the gamepads is being passed into the inner most case block, but not being used. Gamepad data is clearly redundant in Auto, so why it it there?

4) The "Disabled" case block is clearly an "exampler" of what should be done, but since I have extra motors I need to add code. Once again... it's only a template

5) To address the point of "Will the disable input shut down Auto code"? I'm completely in agreement with you.

What the Auto Template fails to address (and that I've tried to raise several times) is that if people write their auto code a one long sequence of movements (which is most natural), the inner auto block WILL NOT exit until it's done. Which means that it will NOT see a new bluetooth command from the control station, which means it WILL NOT disable untill it's done.

So if the "Software Inspection" terminates Auto after only 10 seconds, most programs will continute to run their course up to the full 30 (or beyond).

I agree that some additional "loop/thread" must be included so that the bluetooth and drive-code can run in parrallel. This is what I currently have, and it means that I can at least disable my code after each movement.

However, if FIRST decides that we MUST follow the template structure, then I'll begrudgingly put it all in the main case block and wait for them "FAIL" my code because it doesn't stop in time during auto inspection.

For anyone who doubts this analysis, I suggest you get an FTC robot with encoders on the wheels and then put a sequence of 4 "Fixed Distance.VI" commands in the Auto code section. Now see if you can stop them running by "Disabling" the robot once they have started.


The one GREAT thing in all of this is that they have released the Field Control software so we can double check our assumptions, rather than just "hoping" to be compliant.

Phil.
Eager to be proven wrong.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2009, 11:19
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: New LabView Templates

Quote:
Originally Posted by PhilBot View Post
The one GREAT thing in all of this is that they have released the Field Control software so we can double check our assumptions, rather than just "hoping" to be compliant.

Phil.
Eager to be proven wrong.
Hi Phil (and others): And here's where you'll be proven wrong. At the end of Autonomous, the FMS exits the autonomous program running on the NXT. Your code will definitely stop. The question then becomes: What happens when you exit the NXT code and you have full power applied to the motors? Do the motors stop? I think so. I believe the same thing happens if the bot is disabled by the FMS as well as at the end of teleop.
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #5   Spotlight this post!  
Unread 17-01-2009, 13:29
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: New LabView Templates

Quote:
Originally Posted by emmell View Post
Hi Phil (and others): And here's where you'll be proven wrong. At the end of Autonomous, the FMS exits the autonomous program running on the NXT. Your code will definitely stop. The question then becomes: What happens when you exit the NXT code and you have full power applied to the motors? Do the motors stop? I think so. I believe the same thing happens if the bot is disabled by the FMS as well as at the end of teleop.

OK, yeah... I didn't think of that... but I would have discovered it when I tried the cool FMS program

If you are just issuing a regular move motor command, there is a 2.5 second timeout on the Motor controller, so it will stop fairly quickly.

However, the Fixed Position command disables this timeout, and the NXT does a 10 second timeout instead. So if the NXT gets stopped during one of these commands, the robot will continue until it gets to it's encoder target... or forever, if it runs into something.

I'll check this out today
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2009, 10:03
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: New LabView Templates

I haven't checked out the FMS yet but ...

I know that autonomous will stop at the end when they cut the autonomous program, but..

In the write ups FIRST states they want to be able to disable your robot (I assume only one robot and the rest on the match continues) in autonomous. Certainly these templates or any other FIRST has put put will not do this with FTC Controller Station. Will it happen with the FMS??? May be if instead of disable they cut off the autonomous program on just the one robot?!?

A little story on about the old templates...

At the VA Tournament our 3165 robot always did a little spin dance when the autonomous period ended. We knew it was not in our autonomous code. This bugged me but I figured it was one of the motor controller issues. Fortunately it was short enough noone else seemed to notice. Well, when we were changing to the new templates, we notices we had some test code in the autonomous section of our teleopedated code, which evidently ran when the FMS switched to teleop.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights

Last edited by jbbjjbt : 19-01-2009 at 10:04. Reason: fixed typo
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2009, 10:27
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: [FTC]: New LabView Templates

Quote:
Originally Posted by jbbjjbt View Post
Well, when we were changing to the new templates, we notices we had some test code in the autonomous section of our teleopedated code, which evidently ran when the FMS switched to teleop.
See my FMS review here:

http://www.chiefdelphi.com/forums/sh...threadid=72405
It explains much
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2009, 22:37
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: New LabView Templates

OK, I've now checked out the FMS. So to stop just your robot, the halt button kills your program in either autonomous or teleop.

So the disable/enable mode is really only used as to start autonomous or teleop not to end them.

One word about the autonomous template, make sure your autonomous lasts at least 30 seconds or it will start over.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
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]: LabVIEW Programming Template for FTC Team 288 FIRST Tech Challenge 30 06-02-2010 17:49
[FTC]: Tips page on using FTC Encoders with LabVIEW PhilBot FIRST Tech Challenge 7 27-01-2009 14:00
[FTC]: First problem with FTC and LabView.....? PhilBot FIRST Tech Challenge 5 07-11-2008 10:36
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 26-10-2008 00:43
[FTC]: FTC Labview questions Monty Python FIRST Tech Challenge 8 14-10-2008 20:03


All times are GMT -5. The time now is 12:37.

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