Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 2.29 KB

cyphal.md

File metadata and controls

67 lines (43 loc) · 2.29 KB

PX4 Cyphal HITL simulation configuration

Hardware Requirements

For HITL simulation you need the following hardware:

An example of connection is shown below:

drawing

The autopilot and sniffer should be connected via any CAN bus.

Software requirements

PX4 doesn't fully support the Cyphal UAV HITL simulation right now. The following features are required:

It is recommended to use the custom branch: pr-cyphal.

Step 1. Build and load the firmware

It is expected that you already familiar with PX4, have everything installed according to the official PX4 instruction.

To build and upload the firmware in HITL mode run:

cd PX4-Autopilot
git checkout pr-cyphal
git submodule update --init --recursive
make clean
make distclean
make px4_fmu-v5_cyphal upload

Step 2. Load the parameters

An autopilot for HITL mode configuration requires several steps such as:

  • disable few preflight checks,
  • disable onboard sensors,
  • configure Cyphal related part including registers,
  • calibrate sensors.

The simplest way is to just call a python script based on pymavlink that handles everything.

Warning! The script below will reset all your autopilot parameters. If you need them, don't forget to save.

cd scripts/setup
./px4_cyphal.py

Step 3. Verify with Yukon

drawing

Step 4. Ready to fly

Open QGroundControl. If the simulation is connected, the vehicle should be Ready To Fly. You should see:

usage_check_airframe