python_array_test_send.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: utf-8 -*-
00003 
00004 import time
00005 from pymavlink import mavutil
00006 
00007 master = mavutil.mavlink_connection("udp::14555", input=False, dialect="array_test")
00008 while True:
00009     master.mav.system_time_send(1,2)
00010     master.mav.array_test_0_send(1, [-3, -2, -1, 0], [1,2,3,4], [5,6,7,8], [9,10,11,12])
00011     master.mav.array_test_1_send([1,2,3,4])
00012     master.mav.array_test_3_send(1, [2,3,4,5])
00013     master.mav.array_test_4_send([1,2,3,4], 5)
00014     master.mav.array_test_5_send("test1", "test2")
00015     master.mav.array_test_6_send(1,2,3, [4,5], [6,7], [8,9], [10,11], [12,13], [14,15], "long value", [1.1, 2.2], [3.3, 4.4])
00016     master.mav.array_test_7_send([1.1, 2.2], [3.3, 4.4],
00017             [4,5], [6,7], [8,9], [10,11], [12,13], [14,15], "long value")
00018     master.mav.array_test_8_send(1, [2.2, 3.3], [14,15])
00019     time.sleep(1)
00020 
00021 master.close()
00022 


mavlink
Author(s): Lorenz Meier
autogenerated on Wed Sep 9 2015 18:06:17