Esempio n. 1
0
 def test_gyro_sensor(self):
     get_input('Attach a GyroSensor then continue')
     d = GyroSensor()
     get_input('test ang')
     print(d.ang)
     print(d.mode)
     get_input('test rate')
     print(d.rate)
     print(d.mode)
     get_input('test ang_and_rate')
     print(d.ang_and_rate)
     print(d.mode)
Esempio n. 2
0
 def __init__(self):
     self.gyro = GyroSensor()
Esempio n. 3
0
 def __init__(self):
     self.left = Motor(port=Motor.PORT.B)
     self.right = Motor(port=Motor.PORT.C)
     self.left.reset()
     self.right.reset()
     self.gyro = GyroSensor()