mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
feat:add average cell voltage in CRSF telemetry
This commit is contained in:
parent
a02e1dd384
commit
50d287a9d4
2 changed files with 9 additions and 1 deletions
|
@ -69,6 +69,7 @@ extern "C" {
|
|||
int sbufBytesRemaining(sbuf_t *buf);
|
||||
void initSharedMsp();
|
||||
uint16_t testBatteryVoltage = 0;
|
||||
uint16_t testAvgCellVoltage = 0;
|
||||
int32_t testAmperage = 0;
|
||||
uint8_t mspTxData[64]; //max frame size
|
||||
sbuf_t mspTxDataBuf;
|
||||
|
@ -259,6 +260,9 @@ extern "C" {
|
|||
uint16_t getBatteryVoltage(void) {
|
||||
return testBatteryVoltage;
|
||||
}
|
||||
uint16_t getBatteryAverageCellVoltage(void) {
|
||||
return testAvgCellVoltage;
|
||||
}
|
||||
bool isAmperageConfigured(void) { return true; }
|
||||
int32_t getAmperage(void) {
|
||||
return testAmperage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue