Go to Post We also have a CNC mill and CNC lathe, but we're interested in doing this only if we can do it quickly. Milling anything takes too long for my MTV-generation attention span. :) - Madison [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 23-03-2010, 17:43
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,633
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Small FMS timer bug

Quote:
Originally Posted by Dave Flowerday View Post
It appears the FMS does not properly measure time during the matches. It seems to add about 5 seconds to each 2-minute match. I noticed this while watching a webcast of the Milwaukee Regional and doing some timing measurements for something unrelated on my computer, and confirmed it while I was at the Midwest Regional this past weekend (to make sure it wasn't somehow related to the webcast).

I don't really think this is a big deal or anything; it's more of an interesting curiosity. However, I wonder how many matches teams have lost due to something that occurred in the last 5 seconds when the match should have been over? I'm pretty sure this has happened to us more than once. It's a little irritating to think that we may have won some of those matches if FIRST had followed their own rules... (I know, we've probably won some in those last 5 seconds too so it probably evens out...)
This is interesting. Does this happen every time or does it happen only occasionally.

The reason I asked is that I have just asked our coders to implement an automatic brake feature that puts the brake on our winch with 3 seconds left - I don't like depending on our drivers to remember in the heat of battle if it is easily fixed. From what our coders have been able to discover, there is no "what is the match time" function available on the cRio -- on the Classmate, yes, but not the cRio. So... no problem. We can watch for the first enable after Auton Mode and start counting seconds. When we get to 117, time to throw the brake with 3 seconds to spare...

...except now do we have to wait until 122?

Hmmm...

Anyone have a more elegant solution?

Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 23-03-2010 at 18:19.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2010, 17:56
Unsung FIRST Hero
JVN JVN is offline
@JohnVNeun
AKA: John Vielkind-Neun
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 2000
Location: Greenville, Tx
Posts: 3,159
JVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond reputeJVN has a reputation beyond repute
Re: Small FMS timer bug

Quote:
Originally Posted by Joe Johnson View Post
Anyone have a more elegant solution?

Joe J.
Make your driver do 100 pushups every time he forgets.

-John
__________________
In the interest of full disclosure: I work for VEX Robotics a subsidiary of Innovation First International (IFI) Crown Supplier & Proud Supporter of FIRST
Reply With Quote
  #3   Spotlight this post!  
Unread 24-03-2010, 10:02
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
Re: Small FMS timer bug

Quote:
Originally Posted by JVN View Post
Make your driver do 100 pushups every time he forgets.

-John
You've been spending too much time around Paul...

Anyways, this is an interesting issue... never considered that time would be off... Its curious how (supposedly) this bug was introduced in 2009, and not detected until now. As has already been stated, maybe the best route at this point is to let this bug live its life for the remainder of this year, and kill it next year.
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2010, 10:11
Rob Rob is offline
Registered User
AKA: Rob
FRC #0131 (CHAOS)
Team Role: Coach
 
Join Date: Mar 2004
Rookie Year: 1996
Location: New Hampshire
Posts: 304
Rob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond reputeRob has a reputation beyond repute
Send a message via AIM to Rob
Re: Small FMS timer bug

This is very interesting. I know that a problem similar to this existed in 2004 as I personally timed matches at the CT regional in Hartford that year.

The 2004 peoblem seems to have been a bit worse as each match was an unperdictable length (some longer and some shorter than 2 minutes, with some off by as many as 12 seconds!)

I would say that if the timing is off in a consistent manner this is less of a problem that is matches have inconsistent length.

I wonder how the FMS calculates time...(not a programmer so that may be a rhetorical question...)

Rob
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2010, 10:13
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Small FMS timer bug

Quote:
Originally Posted by Rob View Post
<snip>
I wonder how the FMS calculates time...(not a programmer so that may be a rhetorical question...)

Rob
Incorrectly.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-03-2010, 10:16
Alex Cormier's Avatar
Alex Cormier Alex Cormier is online now
www.TwoPencilDesigns.com
AKA: Grizz, Twinkletoes, PitBull1126
FRC #1405
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Rochester, NY
Posts: 5,580
Alex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond repute
Re: Small FMS timer bug

If it's always a consistent extra 5 seconds, I have no problem with it. It gives the students 5 more seconds of play each match and maybe win.
__________________

Two Pencil Designs - Vinyl Graphics, Bumper Numbers, and Strategy Items!
Like us on Facebook & follow us on Twitter
Facebook.com/TwoPencilDesigns & TwoPencilDesign
Reply With Quote
  #7   Spotlight this post!  
Unread 24-03-2010, 11:05
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Small FMS timer bug

I don't know if this is unrelated or not, but when you start a practice match on the Classmate, about 5 seconds (just remembering here) is elapsed before it enables the robot for autonomous.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2010, 20: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,748
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: Small FMS timer bug

They are probably not related because the DS practice mode was written without knowledge of or access to the code of the FMS. The practice mode defaults to having a five second countdown -- the DS ticks down the seconds, before it starts the sound effect and the auto period.

Is that the five seconds you are commenting on? If so, you can change it in the setup tab.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 28-03-2010, 09:35
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Small FMS timer bug

Yes it is, thanks Greg.
__________________
Reply With Quote
  #10   Spotlight this post!  
Unread 23-03-2010, 17:57
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Small FMS timer bug

Quote:
Originally Posted by Joe Johnson View Post
This is interesting. Does this happen every time or does it happen only occasionally.
It seems to happen every time. I checked a few matches live during Midwest and Milwaukee, and confirmed it at other events by spot-checking a selection of videos from TBA. You can check yourself by going to TBA and selecting a random match video - just take note of the time in the playback bar when you hear the 3 bells to begin operator control and then fast-forward 2 minutes. In every video I've checked, I've found that exactly 2 minutes later you'll hear the announcer saying "5 seconds left!" I just checked and it appears (based on more TBA video) that this bug was introduced between the 2008 and 2009 seasons.
Quote:
The reason I asked is that I have just asked our coders to implement an automatic brake feature that puts the brake on our winch with 3 seconds left - I don't like depending on our drivers to remember in the heat of battle if it is easily fixed. From what our coders have been able to discover, there is no "what is the match time" function available on the cRio -- on the Classmate, yes, but not the cRio. So... no problem. We can watch for the first enable after Auton Mode and start counting seconds. When we get to 117, time to throw the brake with 3 seconds to spare...

...except now do we have to wait until 122?
I wondered if anyone was doing anything like that with timers that would run the length of the match... obviously for anyone trying that this bug is a little more serious. I can't think of any easy way off the top of my head to know how much time is remaining in the match other than what you're doing, so yes, I guess you'd have to wait until 1:22... (think of the upside though - maybe this means we can all be 5 pounds overweight!)

Last edited by Joe Johnson : 23-03-2010 at 18:20.
Reply With Quote
  #11   Spotlight this post!  
Unread 23-03-2010, 18:12
Alex Cormier's Avatar
Alex Cormier Alex Cormier is online now
www.TwoPencilDesigns.com
AKA: Grizz, Twinkletoes, PitBull1126
FRC #1405
Team Role: Coach
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Rochester, NY
Posts: 5,580
Alex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond reputeAlex Cormier has a reputation beyond repute
Re: Small FMS timer bug

Quote:
Originally Posted by Dave Flowerday View Post
It seems to happen every time. I checked a few matches live during Midwest and Milwaukee, and confirmed it at other events by spot-checking a selection of videos from TBA. You can check yourself by going to TBA and selecting a random match video - just take note of the time in the playback bar when you hear the 3 bells to begin operator control and then fast-forward 2 minutes. In every video I've checked, I've found that exactly 2 minutes later you'll hear the announcer saying "5 seconds left!" I just checked and it appears (based on more TBA video) that this bug was introduced between the 2008 and 2009 seasons.

I wondered if anyone was doing anything like that with timers that would run the length of the match... obviously for anyone trying that this bug is a little more serious. I can't think of any easy way off the top of my head to know how much time is remaining in the match other than what you're doing, so yes, I guess you'd have to wait until 1:22... (think of the upside though - maybe this means we can all be 5 pounds overweight!)
Wow... I was first going to ask if you added the time between auto and teleop. But you didn't, I just confirmed this by watching some of the FLR videos. Very interesting.
__________________

Two Pencil Designs - Vinyl Graphics, Bumper Numbers, and Strategy Items!
Like us on Facebook & follow us on Twitter
Facebook.com/TwoPencilDesigns & TwoPencilDesign
Reply With Quote
  #12   Spotlight this post!  
Unread 23-03-2010, 18:48
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,748
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: Small FMS timer bug

Definitely let someone at FIRST know about this one -- post it to the official forums.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 23-03-2010, 21:15
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: Small FMS timer bug

Quote:
Originally Posted by Joe Johnson View Post
This is interesting. Does this happen every time or does it happen only occasionally.

The reason I asked is that I have just asked our coders to implement an automatic brake feature that puts the brake on our winch with 3 seconds left - I don't like depending on our drivers to remember in the heat of battle if it is easily fixed. From what our coders have been able to discover, there is no "what is the match time" function available on the cRio -- on the Classmate, yes, but not the cRio. So... no problem. We can watch for the first enable after Auton Mode and start counting seconds. When we get to 117, time to throw the brake with 3 seconds to spare...

...except now do we have to wait until 122?

Hmmm...

Anyone have a more elegant solution?

Joe J.

I know if you are using labview you can return an elapsed teleoperated time as a variable (which may be more "official") you can reference in your code. I don't know if it is the same for C++ and Java but you should look into it.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #14   Spotlight this post!  
Unread 23-03-2010, 21:23
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,748
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: Small FMS timer bug

The LV framework computes the time the same way as mentioned. It counts from the first Tele packet received.

Greg McKaskle
Reply With Quote
  #15   Spotlight this post!  
Unread 24-03-2010, 00:44
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Small FMS timer bug

This is very interesting. I will time some matches during the Boston Regional to confirm this "on the ground". Watching recorded matches may introduce issues with different frame rates due to re-encoding, but it sounds persistent.
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
FMS Light 2010? alectronic General Forum 1 04-02-2010 09:28
Finding FMS Lite Jon236 Off-Season Events 5 29-09-2009 13:44
[FTC]: FMS saaby FIRST Tech Challenge 4 02-02-2009 17:12
[FTC]: Field Timer (similer but not the FMS) team2845 FIRST Tech Challenge 0 19-12-2008 17:52
Small bug Jay Lundy CD Forum Support 1 18-06-2001 17:03


All times are GMT -5. The time now is 11:43.

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