Beginner Help with PyMAVlink and Mission Planner Commands for Serial Communication

143 views
Skip to first unread message

Jamie S

unread,
Sep 27, 2022, 4:07:04 PM9/27/22
to MAVLink
Hello!

I am new to pymavlink and am trying to develop a python3 serial communication script to send messages to Mission Planner.

I have tried reading these documents which I generally have found unhelpful and non-descriptive.

I am wondering if someone could help point me to python3 resources or help me get started with basic messaging?

This is my basic code so far:

from pymavlink import mavutil

connection = mavutil.mavlink_connection(IP_address)
connection.wait_heartbeat()
print("Heartbeat from system (system %u component %u)" % (connection .target_system, connection.target_component))
connection.mav.send('this is a test')
connection.close()

Hamish Willee

unread,
Sep 28, 2022, 8:56:38 PM9/28/22
to MAVLink
Hi Jamie

The absolute best place IMO to get Pymavlink support is the gitter channel: https://gitter.im/ArduPilot/pymavlink

A basic introduction can be found here: https://mavlink.io/en/mavgen_python/

However the best place for Pymavlink docs is IMO https://www.ardusub.com/developers/pymavlink.html

Hope that helps.

Regards
Hamish





Reply all
Reply to author
Forward
0 new messages