Commit Graph

6 Commits

Author SHA1 Message Date
Peter Barker
b3bc0528e0 Tools: create and use AP_PERIPH_BATTERY_ENABLED
... and AP_PERIPH_BATTERY_BALANCE_ENABLED while we're here
2025-01-28 09:11:21 +11:00
Thomas Watson
f2f1ac39cf AP_Periph: remove redundant DroneCAN packet buffer initialization
The <msg>_encode method always zeros the buffer up to <msg>_MAX_SIZE
bytes so there is no need to do it before calling the function.

Saves at least 8 bytes per instance.
2024-08-03 19:02:39 +10:00
Andrew Tridgell
94841dd608 Tools: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Andrew Tridgell
50ae89ed8c AP_Periph: support per-cell info in periph battery monitoring
useful for SMBus batteries
2023-10-02 21:45:28 +11:00
Tom Pittenger
6fb94828fe AP_Periph: add param BATT_HIDE_MASK 2023-09-13 08:16:45 +10:00
Andrew Tridgell
0c38dada6c AP_Periph: re-structure peripheral code
split into separate cpp files and avoid static functions
2023-09-01 13:04:59 +10:00