Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update():
- global yaw
- global roll
- global pitch
- yaw = -android[0].googleYaw
- roll = -android[0].googleRoll
- pitch = android[0].googlePitch
- freePieIO[0].yaw = yaw
- freePieIO[0].pitch = pitch
- freePieIO[0].roll = roll
- if starting:
- yaw = 0
- roll = 0
- pitch = 0
- android[0].update += update
- freePieIO[0].update += update
- diagnostics.watch(freePieIO[0].yaw)
- diagnostics.watch(freePieIO[0].roll)
- diagnostics.watch(freePieIO[0].pitch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement