Thread: Autonomous Help
View Single Post
  #13   Spotlight this post!  
Unread 21-01-2015, 08:47
curtis0gj curtis0gj is offline
Registered User
FRC #5033 (Beavertronics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Canada
Posts: 121
curtis0gj will become famous soon enough
Re: Autonomous Help

This quote thing is driving me nuts, anyway this works right?
Code:
double angle = gyro1.getAngle();
    		double distance = encoder.getDistance();
    		
    		SmartDashboard.putNumber("Angle", angle);
    		SmartDashboard.putNumber("Distance", distance);
Also now that I have made my distance variable can I use it in my if statement like so, if(distance > 50) ?
Reply With Quote