Rasberry Pi and ArduSub/Pixhawk Interface

Hi,

Where can I find more information about the PyMavLink interface between the Rasberry Pi and ArduSub. I’m building an AUV based on the BlueROV Heavy with several modifications and additional sensors.

What data can be sent between the Rasberry Pi and ArduSub on the Pixhawk?

I want to be able to get regular access to the sensor measurements for the sensors directly
connected to the pixhawk.

I also want to be able to send commands from the Rasberry Pi to the Pixhawk including:

  • Low Level Thruster Commands
  • High Level Commands such as commanded pitch/roll, velocity
  • Potentially waypoints

Is this possible?
Where can I find more information about this?

Also, with what frequency can I get updates from the sensors connected to the Pixhawk over the
connection to the Rasberry Pi?

Lastly, how is time synchronisation handled between the RPi and the Pixhawk?

Thanks,

Josh

Hi,

Please check our pymavlink documentation here: Pymavlink · GitBook

Each message contains a timestamp, if you want to change the frequency of a specific message, please take a look in MAV_CMD_SET_MESSAGE_INTERVAL

Hi Thanks!

I saw the first link you sent, but hadn’t seen the second.

However, can you give me more information about how to sync the pixhawk time to the RPi time? I need time stamps generated from either system to be aligned. This is usually done via something like ntp or ptp or a pps signal interface.

Thanks!

Josh

Additionally, what specific information can be sent from the poxhawk to the pi?

Can battery sensing information be sent?

Thanks!

Take a look in the ardupilot website about message synchronization: Clock/Time Synchronisation — Dev documentation

This is ROS specific but the same thing can be applied for any application, some modifications in ardusub may be necessary to accomplish what you looking for.

Take a look in the mavlink website: Messages (common) · MAVLink Developer Guide
You can use the search bar or ctrl+f to find specific messages.