Advertisement
Guest User

FreePIE > IO

a guest
Oct 30th, 2014
1,407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. def update():
  2.    global yaw
  3.    global roll
  4.    global pitch
  5.    yaw = -android[0].googleYaw
  6.    roll = -android[0].googleRoll
  7.    pitch = android[0].googlePitch
  8.    
  9.    freePieIO[0].yaw = yaw
  10.    freePieIO[0].pitch = pitch
  11.    freePieIO[0].roll = roll
  12.  
  13. if starting:
  14.    yaw = 0
  15.    roll = 0
  16.    pitch = 0
  17.    android[0].update += update
  18.    freePieIO[0].update += update
  19.  
  20. diagnostics.watch(freePieIO[0].yaw)
  21. diagnostics.watch(freePieIO[0].roll)
  22. diagnostics.watch(freePieIO[0].pitch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement