View Single Post
  #4   Spotlight this post!  
Unread 12-03-2008, 16:22
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,381
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Autonomous / Hybrid - Tethered versus Radio?

Quote:
Originally Posted by Shue View Post
Hi!

Has anyone noted differences between running autonomous / hybrid mode while tethered (practice floor) versus running using radio (competition)?

We have been seeing very odd behavior on the competition floor at the start of autonomous, where our robot will move out from the wall from 1 to 6 feet or so, then make an immediate left turn into the wrong quadrant on the track (into oncoming traffic). We have run literally dozens of times on the practice floor at the Finger Lakes Regional and did not see this behavior once (always went the correct distance before the left turn, regardless of lane settings, starting delays, etc).

We tried a number of "experiments" to attempt to identify the cause (disabling IR command handling, changed from using gyro-controlled operation to just programmed values for "straight", slowing acceleration of the drive wheels off the line to minimize any wheelspin). The behavior was still bad, although the programmed "straight" approach did change the hard left turn to a 45 degree turn to the left on occasion... We use geartooth sensors to determine distances, but those have not been suspect since the behavior seems to track so consistently with tethered/practice versus radio/competition...

We worked with the software mentor (Mike) from Team SparX to see if anything we were doing from a software perspective was obviously wrong. He had many great suggestions, which we had either already tried or subsequently tried, but nothing that modified our robots behavior.

Mike made one point that, although surprising, could be causing our problems in some form. Specifically, we may be experiencing differences procedurally in the way we enable our robot on the practice floor versus how it is done on the competition floor. He indicated that on the competition floor, the un-asserting of "disabled" and the asserting of "autonomous" are done as two discrete operations. In our code, this will allow for a short period of teleop between the disable going away and the autonomous being asserted (both tele-init and tele-op will occur potentially). We definitely do not do this on the practice floor (just set autonomous and disabled on our competition box, reset the robot, then un-assert disabled).

Although this is surprising, the code looks like it should handle it without problems/conflicts. I did put an interlock to prevent this into the code, just for interest factor. Unfortunately, we only had one match left at Finger Lakes to see if it affected behavior, and we were bumped by another robot on a delayed start so no useful data was gathered.

We are going to the Buckeye Regional next week, and are REALLY trying to avoid getting hit with the 10 point penalty each time this occurs (for going the wrong way on the track). Disabling the autonomous / hybrid mode is only a last resort, since it works so well (when it works ).

Thanks in advance for any insight or assistance!

GO TEAMS!

-Mike
From the terms you are using, it sounds like you are using Kevin's code, correct?

If so, try enabling Process_Gyro_Data(); in the Teleop_Spin loop.
I know you may not be using the gyro in teleop, but it may eliminate your problem if in fact the assertion of Autonomous does happen after a loop or two of teleop. (I really would like to be wrong here. We are doing exactly the same thing you are, we just haven't been in competition yet to see these errors.)
Secondly, how and where are you calculating the gyro bias??
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist