Protobuf definitions for the Meshtastic project
Find a file
Tom Fifield 22300b0843 Add device_battery_num_cells
Currently in firmware we hard-code NUM_CELLS (usually to 1), and our code for calculating battery charge uses this variable in ways like "voltage = v / NUM_CELLS;"

If the battery voltage is one cell around our 4V normal, that works fine.

However, as reported in https://github.com/meshtastic/firmware/issues/5360 it's not uncommon for solar installs that have multiple batteries set up in a way that looks like 1 cell at 12V to our current code. So, battery charge % is always 100%.

Allowing num_cells as a configuration option will allow those users to specify how many batteries they have and receive accurate readings.
2024-12-24 12:13:58 +11:00
.github Shut up buf... nobody like your nagging 2024-08-21 06:51:56 -05:00
.vscode cleanup & update actions 2024-03-30 13:31:28 +10:00
meshtastic Add device_battery_num_cells 2024-12-24 12:13:58 +11:00
.gitattributes clamp CR/LF and trunk fmt the ci files 2023-01-30 13:34:14 +01:00
buf.yaml Make node_db_lite a vector (#470) 2024-03-21 10:42:19 -05:00
LICENSE Initial commit 2020-03-02 09:44:55 -08:00
nanopb.proto cleanup & update actions 2024-03-30 13:31:28 +10:00
README.md add swift_prefix 2023-01-22 01:48:13 +10:00

Meshtastic Protobuf Definitions

CI CLA assistant Fiscal Contributors Vercel

Overview

The Protobuf message definitions for the Meshtastic project (used by apps and the device firmware).

Documentation/API Reference

Stats

Alt