getAccel.py 277 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 import CoDrone def main(): drone = CoDrone.CoDrone() drone.pair() # print the acceleration of drone while 1: acceleration = drone.get_accelerometer() print(acceleration.X, acceleration.Y, acceleration.Z) if __name__ == '__main__': main()