File tree Expand file tree Collapse file tree 2 files changed +30
-16
lines changed Expand file tree Collapse file tree 2 files changed +30
-16
lines changed Original file line number Diff line number Diff line change 27
27
0,
28
28
0,
29
29
null,
30
- 47.397742 ,
31
- 8.5455939 ,
30
+ 47.397763168426465 ,
31
+ 8.545600849401296 ,
32
32
50
33
33
],
34
34
"type": "SimpleItem"
46
46
0,
47
47
0,
48
48
null,
49
- 47.39822664479198 ,
50
- 8.545560383312846 ,
49
+ 47.39871817095695 ,
50
+ 8.545497855290222 ,
51
51
50
52
52
],
53
53
"type": "SimpleItem"
65
65
0,
66
66
0,
67
67
null,
68
- 47.398249311957585 ,
69
- 8.544924206259822 ,
68
+ 47.398700886684885 ,
69
+ 8.544924200005596 ,
70
70
50
71
71
],
72
72
"type": "SimpleItem"
84
84
0,
85
85
0,
86
86
null,
87
- 47.397741626132294 ,
88
- 8.544924213007533 ,
87
+ 47.39774277601443 ,
88
+ 8.544925937372682 ,
89
89
50
90
90
],
91
91
"type": "SimpleItem"
108
108
}
109
109
],
110
110
"plannedHomePosition": [
111
- 47.397742 ,
112
- 8.5455939 ,
113
- 488.787199104001
111
+ 47.397763168426465 ,
112
+ 8.545600849401296 ,
113
+ null
114
114
],
115
115
"vehicleType": 2,
116
116
"version": 2
117
117
},
118
118
"rallyPoints": {
119
119
"points": [
120
+ [
121
+ 47.3975777095593,
122
+ 8.545262530782963,
123
+ 0
124
+ ],
125
+ [
126
+ 47.39882862292046,
127
+ 8.545234383318984,
128
+ 0
129
+ ]
120
130
],
121
131
"version": 2
122
132
},
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ async def run():
16
16
print (f"-- Connected to drone!" )
17
17
break
18
18
19
- mission_import_data = await \
20
- drone .mission_raw .import_qgroundcontrol_mission (
21
- "example-mission.plan" )
22
- print (f"{ len (mission_import_data .mission_items )} mission items imported" )
23
- await drone .mission_raw .upload_mission (mission_import_data .mission_items )
19
+ out = await drone .mission_raw .import_qgroundcontrol_mission (
20
+ "example-mission.plan" )
21
+
22
+ print (f"{ len (out .mission_items )} mission items and"
23
+ f"{ len (out .rally_items )} rally items imported." )
24
+
25
+ await drone .mission_raw .upload_mission (out .mission_items )
26
+ await drone .mission_raw .upload_rally_points (out .rally_items )
27
+
24
28
print ("Mission uploaded" )
25
29
26
30
You can’t perform that action at this time.
0 commit comments