Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- from pymavlink import mavutil
- import time
- #interface = mavutil.mavlink_connection("/dev/ttyACM0", autoreconnect=True)
- interface = mavutil.mavlink_connection("udp:127.0.0.1:14550", autoreconnect=True)
- while True:
- m = interface.recv_msg()
- if m:
- if (m.get_type() == 'HEARTBEAT'):
- print m
- #interface.set_mode_px4("ALTCTL",0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement