42,13 → 42,13 |
// the following bytes must be exactly in that order! |
uint8_t Current; // in 0.1 A steps, read back from BL |
uint8_t MaxPWM; // read back from BL -> is less than 255 if BL is in current limit, not running (250) or starting (40) |
int8_t Temperature; // old BL-Ctrl will return a 255 here, the new version the temp. in °C |
int8_t reserved1; // voltage (BL3) or rpm (BL2) |
int8_t reserved2; // 0 (BL3) or mAh (BL2) |
int8_t Voltage; // in 0.1V (BL3 is limited to 255, BL2 is only low-byte) |
int8_t SlaveI2cError; // BL2 & BL3 |
int8_t VersionMajor; // BL2 & BL3 |
int8_t VersionMinor; // BL2 & BL3 |
uint8_t Temperature; // old BL-Ctrl will return a 255 here, the new version the temp. in °C |
uint8_t RPM; // Raw value for RPM |
uint8_t reserved1; // Voltage (BL3) or mAh (BL2) |
uint8_t Voltage; // in 0.1V (BL3 is limited to 255, BL2 is only low-byte) |
uint8_t SlaveI2cError; // BL2 & BL3 |
uint8_t VersionMajor; // BL2 & BL3 |
uint8_t VersionMinor; // BL2 & BL3 |
uint8_t NotReadyCnt; // Counts up is the Motor is not ready during flight -> MotorRestart etc. |
} __attribute__((packed)) MotorData_t; |
|