Hi,
Does someone who uses the Ultimate Robot with Python could tell me if the function gyroRead(0,3,onRead) to read the z value. If its working properly?
Currently it starts for me with a random value between 180 and -180 and then starts to decrease the value. Rotation changes the value but its still wrong. Read x and y work normally.
The code im testing is:
from megapi import *
def onRead(level):
print(“Gyro Value:%f” %level);
if name == ‘main’:
bot = MegaPi()
bot.start()
while 1:
sleep(0.1);
bot.gyroRead(0,3,onRead);