Skip to content

Control

Control is how the drone knows what to do and does it. It is the flight controller that runs the loop, the receiver that brings in your commands, and the tune that turns them into motor outputs.

In version 0.5.0 there is no separate Control page. These settings are tabs on the part sheets of the parts concerned.

  1. Select a part in the Design Space, or find it on the Parts shelf.
  2. Choose Open sheet in the inspector.
  3. Use the tabs along the top of the sheet.

The sheet closes with Back or Esc.

Part Tabs
Flight controller Sheet, Board, Tune, Rates, Ports, Failsafe, Config sheet
Receiver Sheet, Link
Buzzer Sheet, Link
GPS Sheet, Link, Print

The Board tab is about the board itself and what its sensor costs you. It shows:

The flight controller sheet on its Board tab, listing processor, gyro, loop rate, filter delay and noise figures

  • processor and mount
  • board mass
  • loop rate
  • gyro sample rate
  • filter delay
  • noise floor
  • calibration drift
  • Noise at the motors, which is the gyro’s noise after it passes through the D gain that is actually flying

To choose a different board, swap it on the Parts shelf under Flight controller. If the catalog does not stock yours, use the New board tile at the end of that group.

The Link tab on a receiver or buzzer sheet adds up what the drone’s connection to the outside world weighs. It has rows for:

The receiver sheet on its Link tab, listing the receiver, GPS, buzzer and the link total mass

  • the receiver
  • the GPS, with its mast height if it stands on a mast
  • the buzzer, with whether it has its own power (a buzzer without its own power dies with the pack)
  • the link total

Choose the receiver, GPS and buzzer on the Parts shelf, under Receiver, GPS and Buzzer. No receiver in the catalog publishes its output power or sensitivity, so Lothal does not invent a range.

Lothal derives a rate PID tune for each airframe from how fast that airframe can accelerate on each axis. A light whoop and a heavy long-range drone get very different gains, because they are very different aircraft.

The flight controller sheet on its Tune tab, with P, I and D fields for roll and pitch

On the Tune tab, each axis (roll, pitch, yaw) has:

  • a line saying what the aircraft is on that axis: its rate at full command, how it compares with the reference build, and its loop time
  • P, I and D boxes you can change
  • the Derived values beside them, so you can see what you changed and by how much
  • Revert, which puts that axis back to the derived tune

Reset every axis to the derived tune puts all three back.

The tune you set here is the one the simulator flies. For what full stick means on your radio, see Config.

  • Flight controller: a stack mount mismatch, the board’s mass, and custom boards that Lothal has not checked.
  • Receiver and link: no receiver fitted, and a buzzer that dies with the pack.
  • Tune: a tune overridden by hand, and D limited by gyro noise.
  • The noise figure is an upper bound. No D-term low-pass filter is modelled.
  • Receiver range is not estimated.
  • The tune is derived for Lothal’s own flight controller model. It is a starting point for a real aircraft, not settings to copy into one.

Documentation licensed underCC BY 4.0. Lothal itself is GPL-3.0-or-later.Report a problem.Roadmap.