Adding a part
A custom part in the app
Section titled “A custom part in the app”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.
What Lothal knows about a custom part
Section titled “What Lothal knows about a custom part”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.
A part for everyone: a pull request
Section titled “A part for everyone: a pull request”Adding a real part to data/parts/ is a good first contribution.
- Add the part to the right file, following that file’s
_schemanote and the entries around it. - Give it a
sourcethat says where every number came from. - Run the test suite (see Build from source); every check must pass.
- 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.