|
Re: What is wrong with my Vision to Gyro code?!
Quote:
Originally Posted by Jaci
Are you reading the 125 degrees by eye, or from a print statement? If it's the latter, a code reference for where this statement is would be eternally useful
|
It is indeed the latter
Code:
def visionTurn(self):
if self.vision_state == 1:
self.turnController.setSetpoint(self.desiredAngle)
self.rotateReady = True
self.vision_state=2
elif self.vision_state == 2:
print (self.navx.getYaw())
if self.turnController.onTarget() or self.cancel.get():
self.vision_state=3
self.rotateReady=False
__________________
#Python4Life
|