Liftoff – Drone Telemetry Guide

Liftoff: FPV Drone Racing allows you to stream drone telemetry data to external locations. That way, you can analyze flights, or diagnose issues with external programs that interface with Liftoff.

Guide to Drone Telemetry

All credit goes to JuniorDiscart!

Introduction

Liftoff: FPV Drone Racing allows you to stream drone telemetry data to external locations. This way you can analyze flights or diagnose issues with external programs that interface with Liftoff.

Who Is This for?

The Drone Telemetry feature is not something the average Liftoff: FPV player will find a use for. It is however, useful to players wanting some extremely detailed feedback or researchers interested in analyzing a drone’s behavior, to plot out data in other software, or to train certain data models for A.I.

Setup

The Drone Telemetry feature can be enabled by placing a file in a specific directory. This location depends on the operating system running Liftoff:

Windows:

  • C:\Users\%userprofile%\AppData\LocalLow\LuGus Studios\Liftoff\

macOS:

  • ~/Library/Application Support/LuGus Studios/Liftoff/

Linux:

  • ~/.config/unity3d/LuGus Studios/Liftoff/

Within this directory, create a new file named TelemetryConfiguration.json to enable the drone telemetry.

Currently there is no way to enable or configure this feature from within Liftoff itself.

Configuring the Telemetry Data

The Drone Telemetry data stream is configured using the TelemetryConfiguration.json file. We’ll go over each of the parameters in this section. The example configurations section below provides a few practical examples.

There are two main parameters that can be configured:

The data end point: all telemetry data are sent over a UDP packet stream. The EndPoint value allows you to configure where it is sent to. This value is formatted in IP end point notation, e.g. 127.0.0.1:9001, where you specify the intended IP address and port number.

The stream format: you can configure which telemetry data points you’re interested in, as well as the sequence in which they are sent. The StreamFormat string array defines the sequence. The supported data points and their data layout are listed below:

  • Timestamp (1 float – single precision – 4 bytes/float) – current timestamp of the drone’s flight. This value is reset to zero when the drone is reset.
  • Position (3 floats – single precision – 4 bytes/float) – the drone’s world position as a 3D coordinate. Each position component can be addressed individually as PositionX, PositionY, or PositionZ.
  • Attitude (4 floats – single precision – 4 bytes/float) – the drone’s world attitude as a quaternion. Each quaternion component can be addressed individually as AttitudeX, AttitudeY, AttitudeZ and AttitudeW.
  • Gyro (3 floats – single precision – 4 bytes/float) – the drone’s angular velocity rates, represented with three components in the order: pitch, roll and yaw. Each component can also be addressed individually as GyroPitch, GyroRoll and GyroYaw.
  • Input (4 floats – single precision – 4 bytes/float) – the drone’s input at that time, represented with four components in the following order: throttle, yaw, pitch and roll. Each input can be addressed individually as InputThrottle, InputYaw, InputPitch and InputRoll.

Note that this data stream is only available for drones that are actively being simulated by Liftoff. It won’t work for drones being spectated in multiplayer or during a replay session.

Modifying the Configuration While In-Game

Each time the drone is reset, Liftoff will check whether the telemetry configuration file has been changed, and reload it if so. This allows you to tweak and change parameters without restarting Liftoff.

If the configuration file contains an error, Liftoff will display a popup message after the drone has been reset. Fix the error, reset the drone again, and the new telemetry configuration will be loaded.

Example Configurations

Some example configurations of the TelemetryConfiguration.json file.

Everything

A configuration that will send over all telemetry data to a local end point.

{
  "EndPoint": "127.0.0.1:9001",
  "StreamFormat": [
    "Timestamp",
    "Position",
    "Attitude",
    "Gyro",
    "Input"
  ]
}

The total size of each data frame being sent would be 60 bytes.

Horizontal position over time

A configuration that will only send the position of the drone in the XZ-plane, along with the timestamp, to an end point in the local network.

{
  "EndPoint": "192.168.1.6:6808",
  "StreamFormat": [
    "Timestamp",
    "PositionX",
    "PositionZ"
  ]
}

The total size of each data frame being sent would be 12 bytes.

From input to gyroscope

A configuration that correlates input axes to the drone’s gyroscope, without a timestamp.

{
  "EndPoint": "127.0.0.1:9001",
  "StreamFormat": [
    "InputPitch",
    "GyroPitch",
    "InputRoll",
    "GyroRoll",
    "InputYaw",
    "GyroYaw"
  ]
}

The total size of each data frame being sent would be 24 bytes.

Egor Opleuha
About Egor Opleuha 7736 Articles
Egor Opleuha, also known as Juzzzie, is the Editor-in-Chief of Gameplay Tips. He is a writer with more than 12 years of experience in writing and editing online content. His favorite game was and still is the third part of the legendary Heroes of Might and Magic saga. He prefers to spend all his free time playing retro games and new indie games.

Be the first to comment

Leave a Reply

Your email address will not be published.


*