View Single Post
  #1   Spotlight this post!  
Unread 23-01-2011, 21:08
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Gyro Code: Will this work?

This is my code

Code:
if (!rightstick.GetTrigger()){
			float angle = gyro.GetAngle;
			myRobot.Drive(-1);
		}
my goal of this code is when you push the right trigger the gyro tells it how far to turn

two questions

1)Am i correct on my assumption?

2)What are my inputs to make my robot turn, like 30 degrees or 180?
Reply With Quote