File tree Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -22,29 +22,47 @@ async def run():
22
22
23
23
24
24
async def run_drone (drone ):
25
-
26
25
mission_items = []
27
26
28
27
mission_items .append (mission_raw .MissionItem (
29
- 0 , # start seq at 0
30
- 6 ,
28
+ # start seq at 0
29
+ 0 ,
30
+ # MAV_FRAME command. 3 is WGS84 + relative altitude
31
+ 3 ,
32
+ # command. 16 is a basic waypoint
31
33
16 ,
32
- 1 , # first one is current
34
+ # first one is current
35
+ 1 ,
36
+ # auto-continue. 1: True, 0: False
33
37
1 ,
34
- 0 , 10 , 0 , float ('nan' ),
38
+ # param1
39
+ 0 ,
40
+ # param2 - Acceptance radius
41
+ 10 ,
42
+ # param3 - 0 (pass through the waypoint normally)
43
+ 0 ,
44
+ # param4 - Desired yaw angle at waypoint
45
+ float ('nan' ),
46
+ # param5 - latitude
35
47
int (47.40271757 * 10 ** 7 ),
48
+ # param6 - longitude
36
49
int (8.54285027 * 10 ** 7 ),
50
+ # param7 - altitude
37
51
30.0 ,
52
+ # mission_type.
38
53
0
39
54
))
40
55
41
56
mission_items .append (mission_raw .MissionItem (
42
57
1 ,
43
- 6 ,
58
+ 3 ,
44
59
16 ,
45
60
0 ,
46
61
1 ,
47
- 0 , 10 , 0 , float ('nan' ),
62
+ 0 ,
63
+ 10 ,
64
+ 0 ,
65
+ float ('nan' ),
48
66
int (47.40271757 * 10 ** 7 ),
49
67
int (8.54361892 * 10 ** 7 ),
50
68
30.0 ,
You can’t perform that action at this time.
0 commit comments