Wonseok Kwak

IMU Serial logging 및 monitoring을 위한 소스

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