Go to Post the Robotics team isn't just a club, it's a family. - 1086Programmer [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-03-2004, 20:15
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
A serious (FATAL) error in the FRC documentation (competition_mode)

at the buckeye regional I discovered a bug in our code, and sat up half the night in my hotel room looking at it. I finally concluded my code MUST be correct and the documentation must be wrong

testing in the pit the next day confirmed the documenation is wrong.

Im talking about the bit that tells you if the robot is disabled (before the match starts) or enabled: competition_mode

the documenation from IFI says :
Quote:
Competition Mode Bit 7 of rc_mode_byte (aliased as competition_mode below) indicates the status of the Competition Control, either Enabled or Disabled. This indicates the starting and stopping of rounds at the competitions. Competition Mode is indicated by a solid "Disabled" LED on the Operator Interface.
When Disabled, all PWM and Relay outputs are disabled, but program execution continues. competition_mode = 1 for Enabled, 0 for Disabled. (copied from the FRC 2004 Reference Guide)
in actual testing when the robot is enabled this bit is 0 - when disabled its 1

there was a post by "Wizard of Az" talking about this, but he only seemed to indicate that the name of the variable was confusing - he did correctly state that 1=disabled, but did not mention that the documentation IS WRONG.

we use a yaw rate sensor and to detemine the zero reading we average the input over 32 SW loops when disabled, and continue to do so as long as we are disabled. The only thing that kept our code working was the fact that autom mode is a while loop, so our averaging code was not running during auton mode

but it was running when the driver closed the loop on the yaw rate sensor in normal driver mode - our driver had been complaining that it didnt seem to be working right, but I thought he just wasnt use to it. We had done the original testing with the zero point hard coded = 141, and added the averaging while disabled code later.

If anyone is using the competition_mode bit to initailze variables or start timers or initailze state machines before the bot is enabled, go back and check your code - this SW documentation error caused me hours of grief (trying to figure out why my code was changing the gyro zeropoint while the bot was enabled - we output the zero average to the user_mode display on the OI - so I could see something was rotten in Cleveland :^)
  #2   Spotlight this post!  
Unread 28-03-2004, 20:21
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

That would explain why a home made competition port controller another team let us borrow was labeled incorrectly. The one we made, we labeled after testing.

This seems to be a common mixup, i have already seen a couple of posts on CD with someone mixing up wether 0 and 1 are on/off pressed/not pressed high/low etc...
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #3   Spotlight this post!  
Unread 28-03-2004, 20:25
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

no the competiton PORT adapters are documented correctly as far as I know - its the bit that is defined in the SW code that is backwards.
  #4   Spotlight this post!  
Unread 28-03-2004, 20:30
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

well i dont remember what the documentation says exactly, but i was assuming that all it said was that shorting pin x and y sets "competition_mode" to 1 or 0. Whatever, it doesnt really matter.

Does anyone have any idea who or what writes the IFI code and documentation. Is it employees or FIRST volunteers? how directly is FIRST involved? when did they start work on this years default code? Just curious...
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #5   Spotlight this post!  
Unread 28-03-2004, 20:47
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

who or what?! thats funny! might explain things

innovation FIRST is a separate company that sells equipment for robot hobbiest and folks like us

Im sure FIRST is probabally their biggest customer (1000 teams get new equipment every year now) - so Im sure they are very interested in what FIRST has to say about their gear.

All in all I give innovationFirst ten green squares up - I think they do an excellent job - I dont want anyone to think Im upset or angry about this error in the documentation

in fact, its a normal part of engineering - every once in a while you catch an error in a spec sheet, or a compiler that generates wrong code, or a microprocessor that does not do what its suppose to under certain conditions

in engineering, these sorts of things are documented in whats called 'errata sheets' - Ive never seen a supplier yet that didnt have a bunch of them.
  #6   Spotlight this post!  
Unread 28-03-2004, 21:00
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

Does anyone other than FIRST actually buy this stuff? It is pretty good quality and all, but $565 is pretty steep for microcontrollers (the two inside the FRC cost a grand total of $13.70). I was assuming that the reason it costs so much is because its tailored to exactly FIRST's needs and therefore not exactly the best choice for other uses.

Apparently, this stuff is only available to FIRST teams and schools so it isnt just equipment for the robot hobbiest.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #7   Spotlight this post!  
Unread 28-03-2004, 21:25
MikeDubreuil's Avatar
MikeDubreuil MikeDubreuil is offline
Carpe diem
FRC #0125 (Nu-Trons)
Team Role: Engineer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Boston, MA
Posts: 967
MikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond reputeMikeDubreuil has a reputation beyond repute
Send a message via AIM to MikeDubreuil
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

My knowledge on the controllers (which may or may not be accurate)...

Back in the day (1998 and earlier I think )... Eric Rasmussen used to design the controllers. I believe he works for Deka, but is also a FIRST volunteer. The contollers were basicly given to you in a project box and you had to send them back to FIRST when the season was over. There was no such thing as relays, all the motors used hobby style Teken speed controllers. Programming was accomplished via a Basic Stamp.

Basicly some X-mililtary type people decided to start Innovation FIRST. You'll also notice that they design rack mount enclosures. Innovation FIRST gave us the control system we use today. Robot enthusuats drool over the stuff they make. I believe some Battlebot competitors use their stuff as well. Innovation FIRST has really done an amazing job with the control system.

... enough rambling

EDIT:
Correction: Eric works for FIRST. Thanks John.

Last edited by MikeDubreuil : 28-03-2004 at 21:46. Reason: misinformed
  #8   Spotlight this post!  
Unread 28-03-2004, 21:37
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

someone asked me how to tell if this documentation error is an issue for their team - best way to check is have your SW guys search your code for "competition_mode" and see if anyone used it for anything - if not you are ok - if they did use it to initialize stuff then, yes, if they went by the programmers manual it will do the opposite of what you would expect - so if you find an

If (competition_mode..... statement in your code, check it carefully

you programmers may have already discovered that the documentation is backwards - so dont blindly change it

just make sure its correct:

competition_mode=0 when the robot is enabled

competition_mode=1 when the robot is disabled
  #9   Spotlight this post!  
Unread 28-03-2004, 21:40
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

BTW - innovationFirst will sell their products to anyone - for most equipment like this, the sell price is about 7 times what it costs to manufacture each unit.

thats because there is a lot of engineering design, development, field testing, field support, warrenty coverage on a low volume product like this - if you tried to build one yourself from scratch, then write your own SW to make it run, it would end up costing you hundreds of thousands of $$$ in engineering development, and would take at least 4 months to get the first prototype up and running.

Last edited by KenWittlief : 28-03-2004 at 21:45.
  #10   Spotlight this post!  
Unread 28-03-2004, 21:43
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: A serious (FATAL) error in the FRC documentation (competition_mode)

Quote:
Originally Posted by MikeDubreuil
Eric Rasmussen used to design the controllers. I believe he works for Deka, but is also a FIRST volunteer.
Eric works for FIRST.
  #11   Spotlight this post!  
Unread 28-03-2004, 21:50
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

http://www.innovationfirst.com/FIRSTRobotics/rc.htm

Says "(Schools and FIRST teams only)" about the FRC and the whole package.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #12   Spotlight this post!  
Unread 28-03-2004, 21:55
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

max - you are turning me into a lawyer :cO

it says (in context)

Includes the Microchip C Compiler (Schools and FIRST teams only)

microchip struck a dealt to let us use their C compiler, which is normally somewhat expensive. InnovationFIRST does not require proof of being a school or first team before they ship stuff to you - believe me - they would be HAPPY to sell their stuff to anyone who wants it - this is how they make a living.

Ive had victors sent to my name at my home, just so they wouldnt get lost in the our sponsors factory.
  #13   Spotlight this post!  
Unread 28-03-2004, 21:56
dez250 dez250 is offline
54... What a good number!
no team
 
Join Date: Dec 2002
Rookie Year: 2000
Location: Upstate NY / Manchester, NH
Posts: 1,721
dez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond reputedez250 has a reputation beyond repute
Send a message via AIM to dez250
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

Quote:
Originally Posted by KenWittlief
BTW - innovationFirst will sell their products to anyone.
IFI Hobbiest equiptment
IFI First Robotics Equiptment

The equiptment that we all know as the controllers and various items that comes from ifi is designed by ifi employees such as Ricky and Corey. I know that there are a few of the ifi guys that are mainly hardware and then some that are mainly software. If anyone was at ucf or nyc one of your ifi reps at the event was Corey, he helped design part of the current rc and also is one of the main guys (with ricky) who designed the new LED units. If you were at the NJ or UTC Regional then one of your ifi event reps was Ricky, he also worked on the rc and led units. As you can see from this, most (if not all) of the technology that is used as in the rc, oi, led units, modems, victors and spikes among other things are mainly designed by IFI guys but are produced by another company due to them not being a "production company". So if you ever see any of the IFI guys at an event give them a thank you, because i personally think that FIRST would not be FIRST as we know it with out them all.
__________________
#5

-Michael Dessingue
  #14   Spotlight this post!  
Unread 28-03-2004, 21:58
Max Lobovsky's Avatar
Max Lobovsky Max Lobovsky is offline
Fold em oval!
FRC #1257 (Parallel Universe)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Scotch Plains, NJ
Posts: 1,026
Max Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant futureMax Lobovsky has a brilliant future
Send a message via AIM to Max Lobovsky
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

Quote:
Originally Posted by KenWittlief
max - you are turning me into a lawyer :cO

it says (in context)

Includes the Microchip C Compiler (Schools and FIRST teams only)

microchip struck a dealt to let us use their C compiler, which is normally somewhat expensive. InnovationFIRST does not require proof of being a school or first team before they ship stuff to you - believe me - they would be HAPPY to sell their stuff to anyone who wants it - this is how they make a living.

Ive had victors sent to my name at my home, just so they wouldnt get lost in the our sponsors factory.
ah, sorry, i just misunderstood it. Thanks.
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257


2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
  #15   Spotlight this post!  
Unread 29-03-2004, 11:25
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: A serious (FATAL) error in the FRC documentation (competition_mode)

Quote:
Originally Posted by MikeDubreuil
My knowledge on the controllers (which may or may not be accurate)...

Back in the day (1998 and earlier I think )... Eric Rasmussen used to design the controllers. I believe he works for Deka, but is also a FIRST volunteer. The contollers were basicly given to you in a project box and you had to send them back to FIRST when the season was over. There was no such thing as relays, all the motors used hobby style Teken speed controllers. Programming was accomplished via a Basic Stamp.

Basicly some X-mililtary type people decided to start Innovation FIRST. You'll also notice that they design rack mount enclosures. Innovation FIRST gave us the control system we use today. Robot enthusuats drool over the stuff they make. I believe some Battlebot competitors use their stuff as well. Innovation FIRST has really done an amazing job with the control system.

... enough rambling

EDIT:
Correction: Eric works for FIRST. Thanks John.
A bit of a more in depth explanatioin (I think this is going to date me...), I know for a fact that the Eric-designed control system was used at least from 1997 to 1999 (I believe that was the only time period it was used; there was something else before that). The control system did have relay outputs but they were physically part of the robot controller (there was a positive lead and a negative lead on the robot controller that you connected to). Originally, variable speed applications were used with Tekin speed controllers. Unfortunately, the Tekins had a tendency to catch on fire when too high of a current was used. In 1999, Innovation FIRST came out with the Victor 883 speed controller which was used for high current applications (at the time, it was required on drill and fisher price motors and other motors could use the Tekins). The Eric-designed Robot Controller needed to be returned to FIRST after the season (you could pay a deposit and keep it until October if you wished).

I don't remember ever hearing that the IFI guys were ex-military (they maybe). I had heard that they were FIRST graduates but that's just hearsay.

Matt
Closed Thread


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
FRC Program State Frozen at Power-up WillyC Control System 4 14-02-2004 18:05


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

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