Skip to content

Commit 21a8196

Browse files
authored
Merge pull request #696 from ShafSpecs/patch-1
Updated raw mission example + removed deprecations
2 parents 2cefc4b + babc9fa commit 21a8196

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

examples/mission_raw.py

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,47 @@ async def run():
2222

2323

2424
async def run_drone(drone):
25-
2625
mission_items = []
2726

2827
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
3133
16,
32-
1, # first one is current
34+
# first one is current
35+
1,
36+
# auto-continue. 1: True, 0: False
3337
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
3547
int(47.40271757 * 10**7),
48+
# param6 - longitude
3649
int(8.54285027 * 10**7),
50+
# param7 - altitude
3751
30.0,
52+
# mission_type.
3853
0
3954
))
4055

4156
mission_items.append(mission_raw.MissionItem(
4257
1,
43-
6,
58+
3,
4459
16,
4560
0,
4661
1,
47-
0, 10, 0, float('nan'),
62+
0,
63+
10,
64+
0,
65+
float('nan'),
4866
int(47.40271757 * 10**7),
4967
int(8.54361892 * 10**7),
5068
30.0,

0 commit comments

Comments
 (0)