Pull to refresh

UAVCAN HITL UAV Simulator for PX4

Robotics development *Programming microcontrollers *Manufacture and development of electronics *Robotics Multicopters

Hi from RaccoonLab, a team of enthusiasts in field robotics! We want to share our true-HITL UAVCAN-based simulator for PX4. Quick demo:

This post is based on our PX4 Developer Summit 2021 lighting talk.

We believe a unified UAVCAN bus for drone onboard electronics will become a mainstream approach shortly. Our simulator is already based on UAVCAN (in opposition to UART-MAVLINK) and emulates exactly the same messages as real UAVCAN-sensors.

The project is part of our team's efforts to create reliable control systems and applications in the field of aerial robotics. 

RaccoonLab
RaccoonLab

Our team is called RaccoonLab, it's an acronym for robotics and control and also because coons are funny.

Motivation

Motivation
Motivation

The project itself is focused on a proof-of-concept of a new approach for HITL simulation. But it has a wider scope and its motivation is connected with the new UAVCAN-bus-oriented architecture of onboard electronics. We believe a unified digital bus for onboard drone electronics will be the dominant approach shortly. After all, cars already have an onboard CAN bus. Why do drones have to be behind?

Motivation
Motivation

Let's imagine, we want to develop a highly reliable onboard control system for an air taxi or last-mile drone delivery based on the PX4 ecosystem.

I'm sure, in such a case, we'll need distributed architectures to provide fault tolerance and reliability. Also, we need tools to test our control system in the configuration as close as possible to the final flight configuration. 

Problem

Problem
Problem

We address the problem, that the current MAVLINK-HITL approach has a list of drawbacks:

  • autopilot software configuration differs considerably from flight configuration, and it does matter;

  • digital onboard bus and emulation at the device at a protocol level are not supported;

  • also, we found, UAV dynamics itself needs more attention for more physically accurate simulation.

Solution

Solution
Solution

https://github.com/InnopolisAero/innopolis_vtol_dynamics

Here is our solution. We created a communication package to simulate UAVCAN sensors at the protocol level. We simulated accurate UAV dynamics of the VTOL plane and quadcopter. Autopilot couldn't even differ HITL simulation and real flight mode. We also integrated with Innopolis 3d simulator for high-level perception system simulation and visualization.

Dynamics

Dynamics
Dynamics

VTOL plane simulation is based on full rigid body dynamics. Aerodynamics simulation is based on CFD study. And actuators models are obtained on a special test bench.

Profit

This simulator already works as a proof-of-concept and is freely available on Github.

We are proud, that our simulator already was used to find the bug of airspeed sensor filtration code and test fixes. It's proof of the value it could give to developers.

Profit
Profit

Welcome

We hope, we'll find adopters and contributors among PX4 developers, testers, and researchers.

Let's make UAVCAN HITL a new standard for PX4!

Thank you for your attention and welcome to our Github repo and RaccoonLab's social networks.

Tags:
Hubs:
Total votes 2: ↑2 and ↓0 +2
Views 1.2K
Comments Leave a comment