View Single Post
  #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