python_array_test_send.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 import time
5 from pymavlink import mavutil
6 
7 master = mavutil.mavlink_connection("udp::14555", input=False, dialect="array_test")
8 while True:
9  master.mav.system_time_send(1,2)
10  master.mav.array_test_0_send(1, [-3, -2, -1, 0], [1,2,3,4], [5,6,7,8], [9,10,11,12])
11  master.mav.array_test_1_send([1,2,3,4])
12  master.mav.array_test_3_send(1, [2,3,4,5])
13  master.mav.array_test_4_send([1,2,3,4], 5)
14  master.mav.array_test_5_send("test1", "test2")
15  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])
16  master.mav.array_test_7_send([1.1, 2.2], [3.3, 4.4],
17  [4,5], [6,7], [8,9], [10,11], [12,13], [14,15], "long value")
18  master.mav.array_test_8_send(1, [2.2, 3.3], [14,15])
19  time.sleep(1)
20 
21 master.close()
22 


mavlink
Author(s): Lorenz Meier
autogenerated on Sun Apr 7 2019 02:06:02