Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2467 → Rev 2468

/trunk/libfc1284.a
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/twimaster.c
132,8 → 132,8
Motor[i].MaxPWM = 0;
Motor[i].Temperature = 0;
Motor[i].NotReadyCnt = 0;
Motor[i].RPM = 0;
Motor[i].reserved1 = 0;
Motor[i].reserved2 = 0;
Motor[i].Voltage = 0;
Motor[i].SlaveI2cError = 0;
Motor[i].VersionMajor = 0;
/trunk/twimaster.h
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;