Last active
March 1, 2023 16:20
-
-
Save farhangnaderi/be1902a4390e716977b5947c47f25b52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymavlink import mavutil | |
# Create the connection | |
master = mavutil.mavlink_connection('udpin:0.0.0.0:14540') | |
# Wait a heartbeat before sending commands | |
master.wait_heartbeat() | |
master.mav.command_long_send( | |
master.target_system, | |
master.target_component, | |
mavutil.mavlink.MAV_CMD_DO_REPOSITION, | |
0,5,220, 0, 0, 35.144746, 33.905092, 4) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment