File formats
Folder names below are inside Lothal’s data folder. Where files live gives its location on each operating system.
| File | What writes it | What reads it | Where |
|---|---|---|---|
.lothal |
Lothal, automatically, as you work | Lothal (Projects screen, Open file…) | builds/ (deleted drones in builds/trash/), or wherever you opened it from |
.lothaldesign |
Save and Save as on the ⋯ menu | The Open dialog on the ⋯ menu | designs/ |
.frame.json |
The frame designer’s Save | The frame designer’s Open | frames/ |
flight-YYYYMMDD-HHMMSS.csv |
The simulator, when you record with R | The Flights drawer, and the tools/ scripts |
logs/ |
.md config sheet |
Flight controller sheet, Config sheet tab, Export sheet | Any Markdown or text viewer | sheets/ |
.svg |
The frame designer’s print and cut sheets | Browsers, vector editors, printers; the frame designer’s Import | exports/ |
.dxf |
The frame designer’s cut file | CAD and CAM programs, cutting services; the frame designer’s Import | exports/ |
.stl |
Frame assembly and printable parts, the Print tab, the prop designer | Slicers and 3D programs | exports/, and printed parts also inside the .lothal file |
.html |
The frame designer’s build sheet | Browsers (open and print) | exports/ |
The .lothal file
Section titled “The .lothal file”A .lothal file is a zip, so you can rename a copy to .zip and look inside:
| Inside | What it is |
|---|---|
MANIFEST.json |
What kind of file this is and which Lothal wrote it. |
project.json |
The drone: its name, its parts and its settings. |
parts/custom_parts.json |
Copies of the custom parts this drone uses. |
printed/ |
One STL per printed-part export, each matching a print record in project.json. |
Lothal writes the file itself about a second after a change. If the file changes outside Lothal while the window is out of focus, Lothal reloads it when you come back. If you had unsaved edits, they are kept in a copy beside the file.
The project.json settings are grouped into blocks: parts, assembly, tune, air,
printing, config, airframe, payload and harness. A build with no drawn frame has no
airframe block and flies the fitted catalog frame.
The flight-log CSV
Section titled “The flight-log CSV”- Line 1 is
#followed by a JSON header: the aircraft that flew, the tune, the gyro, the sample rate, the duration, the number of crash restarts, the column list and their units. - Line 2 is the column names.
- Then one row per physics step: time; for each motor its RPM, thrust, torque, current and
blade-pass frequency; total thrust, current, live voltage and charge used; position,
velocity and orientation; the true rotation rate (
omega_*) and the gyro’s reading (gyro_*); body acceleration, airspeed and g-force; each motor’s electrical frequency and tip speed; and weight.
Readers should select columns by name, not by position: new columns are added at the end.
Settings files
Section titled “Settings files”Lothal also keeps these JSON files in its data folder. You do not normally edit them.
| File | Holds |
|---|---|
custom_parts.json |
Your custom parts. |
assembly_tweaks.json |
Fit settings. |
pack_charge.json |
How much charge each pack has. |
pid_tunes.json |
Tunes you have changed by hand. |
sites.json, courses.json, conditions.json |
Field sites, courses and conditions. |
best_laps.json |
Best lap times. |
app_settings.json |
App settings, such as recent drones. |
A damaged settings file does not stop Lothal starting.
Frame exports
Section titled “Frame exports”The frame designer’s Build sheet (HTML) export writes a self-contained HTML page to
exports/, next to the other exports. The Printable parts (STL) export writes one STL per
printable part. The exported SVG and DXF cut files carry a note under each plate: its label,
thickness, material, how many to cut, the cutting bit, and any countersunk holes. The DXF puts
those notes on a NOTES layer, which is text and not a cut, and screw holes marked countersunk on
a <ROLE>_COUNTERSINK layer. Frame documents (.frame.json) also store the cutting bit
(cutting_bit_mm), which screw holes are countersunk, and where any upright side plate stands.
Documentation licensed underCC BY 4.0. Lothal itself is GPL-3.0-or-later.Report a problem.Roadmap.