Skip to content

Adding a part

For a part that is not in the catalog, add it yourself from the Parts shelf in the Design Space.

Each group on the shelf ends with a tile for adding your own:

Group Tile
Battery New pack, which opens the pack designer
Motors Design your own, which opens the motor designer
Props New prop, which opens the prop designer
Prop guards New guard
ESC New ESC
Flight controller New board
Camera New camera
Video transmitter New VTX
Receiver New receiver
GPS New GPS
Buzzer New buzzer
Antenna New antenna

The forms for the simple parts are titled New custom followed by the part, and end with Save part. The designers end with Save to shelf. A saved custom motor or prop shows on the shelf like any other part. Right-click it for Edit in designer or Delete. Delete asks you to press again to confirm.

Each form has a Source box. Say where the numbers came from, such as a product page or your kitchen scale.

Custom parts are saved in custom_parts.json in Lothal’s data folder (see Where files live). A copy of each custom part a drone uses is also saved inside that drone’s .lothal file.

Only what you typed. A custom part has not been reviewed like catalog parts, so a build using one shows a note such as custom motor — unchecked.

Adding a real part to data/parts/ is a good first contribution.

  1. Add the part to the right file, following that file’s _schema note and the entries around it.
  2. Give it a source that says where every number came from.
  3. Run the test suite (see Build from source); every check must pass.
  4. Open a pull request that says what you added and where the figures came from.

See Contributing and the CONTRIBUTING.md file.

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