View Single Post
  #4   Spotlight this post!  
Unread 17-04-2006, 09:55
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: How to end an auto mode after gyro gets out of deadband

My guess is that they don't want to fire if they have been knocked off angle from the target, but would like to start firing again if their robot once again faces the target.

If so, I'd suggest not ending autonomous mode and trying to start it again, instead modify your autonomous so that each cycle a check is done to determine if you should be firing or not:

<get update from gyro>

if (<gyro in accepted range>)
{ <fire>
} else
{ <don't fire>
}

So that each time the sensor data is updated, the check will be done again.

I'm fairly new at this, so my apologies if I'm off base here.