RotorLab logo RotorLabDocs

RotorLab Server: The Fleet role

This page is part of RotorLab Server. It covers the Fleet Server role: how flights reach the server, what it records, and how a flight is filed. It needs a license that grants the Fleet Server role.

The role hears aircraft, records each flight, and files it. It cannot stop a flight, and no reply or setting sends an order to an aircraft: the server only listens.

Video from ground stations#

An enrolled ground station can relay one camera's live picture to this server (RotorLab GC's Video recording and relay settings choose whether it does). Under Ground stations, a signed-in admin, operator or viewer opens the station's live camera in the browser; roles that only hold custody cannot watch. Playback is about a second or two behind. The server holds a few seconds in memory for viewers and never keeps live video. It is H.264 only, the station picks Low, Medium or Full (Linux stations send Full only), and open viewers follow a change of quality or size without reloading. When the station names its flight, the viewer shows it. Each viewer's start and stop is in the audit log. Live video never touches tracking, recording or a flight.

A ground station also uploads each recording after the flight, with an optional time map. It sends the SHA-256 it made while recording before any bytes, and the server puts it in the audit log with its own time; uploads resume after a lost connection, and a recording is kept only when the whole file matches that hash. A recording that names no flight is attached to the station's flight it overlaps in time, if exactly one; otherwise it waits on Ground stations for an operator to attach it, and who attached it, how and when is in the audit log and goes to Records with the file. The server keeps disk for flight recording: it refuses video when free space runs low, limits how much video one station may have waiting, gives back the disk of an upload left idle for 7 days, and clears its own copy once Records has confirmed it, under the same local copies rule as logs.

Ground stations#

Under Fleet, Ground stations, press Make an enrollment code. The code is good for 15 minutes and one use. Enter it in RotorLab GC by hand. Turn on Reachable from my network under Settings, Network first, unless GC runs on this same machine. The list shows each station's platform, when it was last heard and its state (Enrolled or Revoked), with Revoke per row. A revoked station's reports are refused until it is enrolled again; the server cannot stop the station from flying. See the GC connector for what GC sends.

Under Fleet, Aircraft links (admins), the server listens for MAVLink on UDP or TCP. It only listens: it sends nothing to a vehicle, so telemetry has to arrive by itself, forwarded by a ground station or streamed by the autopilot.

The default link is UDP on 127.0.0.1, port 14550, for this machine only. In Docker, that link listens inside the container and hears nothing from outside it: to take MAVLink from another machine, publish the port in the compose file (the 14550/udp line is there, commented out) and add a link on 0.0.0.0 with the ground station as its Sender's address. To add a link press Add link and give a type, a listening address, a port (1 to 65535) and, for a listener on the network, one of these:

  • Sender's address: frames from any other address are dropped before they are read.
  • MAVLink 2 signing passphrase, 16 characters or more: only signed frames are taken.
  • Any sender on this network: anyone there can put an aircraft on the map and start a flight record, so a flight from such a link waits for a person before it is filed.

Each row shows Open or Closed, the frames taken and the frames dropped. Only one source holds an aircraft's track at a time. A source of equal or lower strength cannot take an aircraft's track while the first is heard. A stronger source (signed frames, or a ground station) can take it at once, and a flight taken over mid-flight waits for a person.

Flights#

Fleet, Flights lists the 200 most recent flights the server heard, newest first. A flight starts when an aircraft arms and ends when it disarms. A flight also ends when the aircraft has not been heard for 60 seconds, and the flight record says so.

Each flight shows a status:

StatusMeaning
FlyingArmed now.
Waiting for a personThe record says why: the pilot is not named, the end is missing because the server stopped, another source took the aircraft, or the flight came from an any-sender link.
Short flightUnder 10 seconds, so it may be a ground test.
Kept hereIsolated mode: kept on this server.
Waiting to fileReady, and queued for RotorLab or the Records role.
FiledRotorLab has the flight.
In Records (or Handed over)The Records role, or a remote Records Server, holds it. A handed-over flight whose files Records has not confirmed an hour after it ended shows "Handed over, but Records has not confirmed this log yet." (or "this recording yet.") and is counted on Home.

Open a flight to see its record: start, end, length, why it ended, where it was heard from, the log, whether the recording is intact, and the files held on this server. To release a flight that waits, choose Who flew and Registered aircraft by name from RotorLab's roster (an id outside the roster is refused; with no roster yet, type the RotorLab id), or give Aircraft name, if not registered, Site, What it was for, Crew and Remarks, then tick I checked this flight. File it. and press Save. Nobody on the server guesses who flew. A flight sent by a ground station with a pilot already chosen does not need this.

Flights with a problem appear in a Needs a decision list with Send again for a failed filing.

Sessions: the recording#

Each flight is recorded as a session: the positions and states heard, written to a hash-chained record and signed by the server when the flight closes normally. A flight cut off by a power loss is closed without a signature, and the flight page says so. The flight page shows whether the recording is intact and which public key signed it. Sessions are not sent to RotorLab.app. With a Records role, on this machine or linked, they go there. Without one, they stay on this server and are never cleared automatically.

Filing to RotorLab#

A flight with its details files on its own, apart from its log, so a large log never holds up the flight. If RotorLab cannot be reached, the entry waits on the server and is tried again, with a longer pause each time, up to five minutes. Each filing carries a reference made from the server's device id and the flight, so a retry updates one flight and does not make two.

  • With a Records role on the same box, or a remote one linked, the Fleet side hands the flight over and the Records role files it.
  • Without one, the Fleet side files to RotorLab itself with the Device Key saved under Settings, RotorLab.

Under Settings, Records Server, a Fleet-only box hands its flights, logs and recordings to your Records Server. Only the Records Server then files to RotorLab, so this machine does not hold the RotorLab Device Key.

  • Checklists that a ground station completed are filed against the flight.
  • When RotorLab raises maintenance work from the flight, the flight page says so.

The console's Home says All flights handed over. Nothing needs you. when every flight has gone to a Records Server, All flights filed. Nothing needs you. when every flight has been filed to RotorLab directly, and just Nothing needs you. on a box with no Fleet role.

Settings, RotorLab also shows the roster size, when it was last refreshed, and Refresh now. The server refreshes the roster about once an hour. If the roster is empty or old, a ground station still flies and still reports.

Local copies#

The server keeps a flight's log and session on its own disk. A Fleet Server clears a log automatically only after Records or RotorLab confirms it, and a recording only after Records confirms it. Once a copy is confirmed, the server clears its local copy automatically 24 hours after the flight ends, by default. A Fleet admin can set a whole number of hours from 1 to 8760, or choose Never clear automatically, under Fleet, then Local copies, and every change is written to the activity log. A copy that is not confirmed never clears automatically, and clearing a local copy does not remove the copies on Records or RotorLab. A cleared copy cannot be brought back on this server. On a flight's page, an operator can Download a file, or Delete local copy with a reason once a matching copy is confirmed elsewhere. This removes only this server's copy. A recording in progress cannot be removed.

TAK#

Under Settings, TAK (admins), give the server a TAK host, a port and a connection (TLS or TCP, not encrypted), and the server sends aircraft positions as tracks. It sends tracks only and reads nothing back. If the TAK host is silent or unreachable, tracking and recording carry on, and the page shows Not connected with the reason.

Roles#

RoleCan
adminEverything on the Fleet side, including links, TAK and settings.
operatorMake enrollment codes, revoke stations, edit and file flights, download and delete local copies.
viewerRead flights and their records.

With only the Records role, operators and admins can still view retained flights and download their local logs and sessions. Fleet settings and filing actions need a Fleet license.