About Zihao

This author has not yet filled in any details.
So far Zihao has created 15 blog entries.

PX4 Research Log [13] – PX4 Off-board Control with MAVROS (2)

In the last tutorial we have set up the ROS environment to use MAVROS to talk to PX4. In this tutorial we will run a small example program to autonomously hover a simulated vehicle. Simulation First! We highly recommend you to try this program in simulation first, for safety reasons :) Start a PX4 simulation,

By |2022-12-20T08:44:10+00:00August 15th, 2017|Categories: Flight Control, PX4, Software, Tutorials|Tags: |3 Comments

PX4 Research Log [12] – PX4 Off-board Control with MAVROS (1)

Companion computer is a very efficient way to control your PX4 vehicle in off-board mode. We have tested various methods and we have concluded Robot Operating System (ROS) is the best way. Here is a series of tutorials guiding you to achieve off-board control. What you need: A Pixhawk or a Pixracer A Raspberry Pi

By |2022-12-20T08:44:10+00:00August 15th, 2017|Categories: Flight Control, PX4, Software, Tutorials|Tags: , , |0 Comments

PX4 Research Log [11] – Adding a new flight mode (create application)

In the last post we have set up the PX4 source code for our new flight mode, the flip mode. In this post I will continue finishing the flip mode by creating a new application in the firmware, which commands the attitude during the flip. 1. Create the flip_control application Creating a new application in

By |2022-12-20T08:44:10+00:00March 15th, 2017|Categories: Flight Control, PX4, Software, Tutorials|25 Comments

PX4 Research Log [10] – Adding a new flight mode (Preparation)

If you have programmed Ardupilot and now you switch to PX4, you would really appreciate how easy it is to implement a new flight mode in Ardupilot... PX4 is really good if you just want to write an App to do something, but implementing a new flight mode actually requires a lot of digging around

By |2022-12-20T08:44:11+00:00November 7th, 2016|Categories: PX4, Software, Tutorials|Tags: , , |6 Comments

PX4 Research Log [9] – Analyzing flight on Ubuntu

There are two ways to analyze your PX4 flight as I know, the ".px4log" file generated by PX4, and the ".mavlink" file generated by QGroundControl. 1. ".px4log" with FlightPlot The ".px4log" format is the log file format stored onto the SD card by PX4. The application that performs this logging is "sdlog2". The log files

By |2022-12-20T08:44:34+00:00August 31st, 2016|Categories: Flight Control, PX4|2 Comments

PX4 Research Log [8] – Hardware In the Loop (HITL) Simulation using jMAVsim on Ubuntu 14.04

In most cases, Software In the Loop (SITL) is sufficient for testing your flight controller code. But in other cases, you may want to use Hardware In the Loop (HITL) simulation to validate that your code can actually run on a controller board. The HITL differs from SITL in a few ways: All sensor raw

By |2022-12-20T08:44:34+00:00August 31st, 2016|Categories: Flight Control, PX4|21 Comments

PX4 Research Log [7] – A closer look at mc_att_control

"mc_att_control" is responsible for PX4 multicopter attitude control, this application can be found in "Firmware/src/modules/mc_att_control". Here is what I understand about this application. Start Similar to "mc_pos_control", this application is started by script "rc.mc_apps" on line 32: rc.mc_apps Call Hierarchy The source code for the application exists in "mc_att_control_main.cpp", it follows a very

By |2022-12-20T08:44:35+00:00August 15th, 2016|Categories: Flight Control, PX4|16 Comments

PX4 Research Log [6] – A closer look at mc_pos_control

The application responsible for multicopter position control exists in "Firmware/src/modules/mc_pos_control". I will describe what I understand about this application as much as I can in this blog. Start The application is started by the script "rc.mc_apps" in "Firmware/ROMFS/px4fmu_common/init.d". The script itself is called by the main starting script "rcS" at line 761. Since "rc.mc_apps" is

By |2022-12-20T08:44:35+00:00August 8th, 2016|Categories: Flight Control, PX4|0 Comments
Go to Top