airsim
docs
  • Using C++ APIs for AirSim
  • AirSim APIs
  • Camera Views
  • Installing cmake on Linux
  • AirLib
  • Unreal/Plugins/AirSim
  • MavLinkCom
  • Sample Programs
  • Contributing
  • Unreal Framework
  • Modern C++ Coding Guidelines
  • Contributing
  • How to Create Issue or Ask Question Effectively
  • AirLib on a Real Drone
  • DroneServer and DroneShell
  • Paper
  • Architecture
  • Development Workflow
  • FAQ
  • Flight Controller
  • Busy Hard Drive
  • Hello Drone
  • Image APIs
  • How to Use Lidar in AirSim
  • Log Viewer
  • Multiple Vehicles in AirSim
  • pfm Format
  • Playback
  • Building PX4
  • PX4/MavLink Logging
    • Logging MavLink Messages
    • MavLink LogViewer
    • PX4 Log in SITL Mode
    • PX4 Log in SITL Mode
  • PX4 Setup for AirSim
  • Setting up PX4 Software-in-Loop
  • Using Python APIs for AirSim
  • Reinforcement Learning in AirSim
  • Release Notes
  • Remote Control
  • How to use AirSim with Robot Operating System (ROS)
  • Python
  • C++ (coming soon)
  • Sensors in AirSim
  • AirSim Settings
  • simple_flight
  • Logitech G920 Steering Wheel Installation
  • Setup Blocks Environment for AirSim
  • Creating and Setting Up Unreal Environment
  • Unreal Environment
  • Upgrading to Unreal Engine 4.18
  • Upgrading API Client Code
  • Upgrading Settings
  • How to Use Car in AirSim
  • What’s new
  • Who is Using AirSim?
  • How to use plugin contents
airsim
  • Docs »
  • PX4/MavLink Logging
  • Edit on GitHub

PX4/MavLink Logging¶

Thanks to Chris Lovett for developing various tools for PX4/MavLink logging mentioned on this page!

Logging MavLink Messages¶

The following command will connect MavLinkTest app to the Simulator and enable logging of all mavlink commands to and from the PX4.

Sometimes you will also want to log the “output” from the Simulator that is being sent to the PX4. Specifically this will capture the “hilgps” and “hilsensor” messages that are generated by the Simulator. To do that run this as well:

You will then see log files organized by date in d:templogs, specifically *input.mavlink and *output.mavlink files.

MavLink LogViewer¶

For MavLink enabled drones, you can also use our Log Viewer to visualize the streams of data.

PX4 Log in SITL Mode¶

In SITL mode, please a log file is produced when drone is armed. The SITL terminal will contain the path to the log file, it should look something like this

PX4 Log in SITL Mode¶

If you are using Pixhawk hardware in HIL mode, then set parameter SYS_LOGGER=1 using QGroundControl. PX4 will write log file on device which you can download at later date using QGroundControl.

Next Previous

© Copyright 2018, Shital Shah Revision 9d1a7868.

Built with Sphinx using a theme provided by Read the Docs.