View Single Post
  #3   Spotlight this post!  
Unread 27-01-2009, 17:25
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,355
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: Using Sensors in Autonomous Independent

Quote:
Originally Posted by Felipe Sagui View Post
I have a doubt about how use sensors in autonomous mode.

I create my own VI with the Gyro PID logic, when I put it on Basic Robot Main inside the "TeleOp Execute" case it works, but when I put this on Autonomous Independent VI it doesn't works.

Can anyone show me a solution or ideia to solve this problem?
Quote:
Originally Posted by Felipe Sagui View Post
Sorry , the other programmer from my team forgot the while loop on the autonomous independent, so it was only running 1 time.

This problem is solved.

Thanks and sorry.

I sounds to me from what I am reading here that you have the Gyro code running in two separate locations. There really is no need to do this. It is redundant, eats up more program space and may not work quite like you want it to.

If you run the gyro vi in it's own while loop, outside of the tele-op loops in Basic Robot Main, it will run regardless of whether you are in tele-op or autonomous. Then all you need to do is create Globals for the angle and/or rate outputs,to be accessed from within the "Autonomous Independent" vi, and you should be good to go.
__________________
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
Reply With Quote