Skip to content

Commit

Permalink
Merge pull request #696 from ShafSpecs/patch-1
Browse files Browse the repository at this point in the history
Updated raw mission example + removed deprecations
  • Loading branch information
julianoes authored May 20, 2024
2 parents 2cefc4b + babc9fa commit 21a8196
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions examples/mission_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,47 @@ async def run():


async def run_drone(drone):

mission_items = []

mission_items.append(mission_raw.MissionItem(
0, # start seq at 0
6,
# start seq at 0
0,
# MAV_FRAME command. 3 is WGS84 + relative altitude
3,
# command. 16 is a basic waypoint
16,
1, # first one is current
# first one is current
1,
# auto-continue. 1: True, 0: False
1,
0, 10, 0, float('nan'),
# param1
0,
# param2 - Acceptance radius
10,
# param3 - 0 (pass through the waypoint normally)
0,
# param4 - Desired yaw angle at waypoint
float('nan'),
# param5 - latitude
int(47.40271757 * 10**7),
# param6 - longitude
int(8.54285027 * 10**7),
# param7 - altitude
30.0,
# mission_type.
0
))

mission_items.append(mission_raw.MissionItem(
1,
6,
3,
16,
0,
1,
0, 10, 0, float('nan'),
0,
10,
0,
float('nan'),
int(47.40271757 * 10**7),
int(8.54361892 * 10**7),
30.0,
Expand Down

0 comments on commit 21a8196

Please sign in to comment.