View Single Post
  #2   Spotlight this post!  
Unread 19-02-2016, 01:14
mehnadnerd mehnadnerd is offline
Registered User
AKA: Brendan
FRC #1458 (Red Tie Robotics)
Team Role: Programmer
 
Join Date: Feb 2016
Rookie Year: 2009
Location: Danville
Posts: 5
mehnadnerd is an unknown quantity at this point
Re: Gyro Value to Motor-Need Help

I don't see anything obviously wrong. Looking at your code, I don't think it will correct for NaN errors though. By outputting your values to SmartDashboard with code like
Code:
SmartDashboard.putNumber("Raw Gyro Angle",Robot.gyro.getRawAngle())
, you can see what is going on.
Reply With Quote