Skip to content

Instantly share code, notes, and snippets.

View rahulnathr's full-sized avatar
Building ASV

Rahul Nath R rahulnathr

Building ASV
  • Norway
View GitHub Profile
@vo
vo / gist:9331349
Last active February 13, 2023 13:22
Simple Mavlink Reader in Python using pymavlink
#!/usr/bin/env python
import sys, os
from optparse import OptionParser
# tell python where to find mavlink so we can import it
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../mavlink'))
from pymavlink import mavutil
def handle_heartbeat(msg):