1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Made ESC feedback and vbat calculation more resilient.

Fixed tests.

Cosmetic fix.
This commit is contained in:
mikeller 2017-01-04 20:36:47 +13:00
parent fb4559bfa3
commit e3644ca507
19 changed files with 219 additions and 221 deletions

View file

@ -20,7 +20,7 @@
#include "common/time.h"
typedef struct {
bool stale;
uint8_t dataAge;
int8_t temperature;
int16_t voltage;
int16_t current;
@ -28,10 +28,12 @@ typedef struct {
int16_t rpm;
} escSensorData_t;
#define ESC_DATA_INVALID 255
bool escSensorInit(void);
void escSensorProcess(timeUs_t currentTime);
#define ESC_SENSOR_COMBINED 255
escSensorData_t getEscSensorData(uint8_t motorNumber);
escSensorData_t *getEscSensorData(uint8_t motorNumber);