Subversion Repositories FlightCtrl

Rev

Rev 2466 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2466 Rev 2468
Line 39... Line 39...
39
        uint8_t SetPointLowerBits;      // for higher Resolution of new BLs
39
        uint8_t SetPointLowerBits;      // for higher Resolution of new BLs
40
        uint8_t State;                          // 7 bit for I2C error counter, highest bit indicates if motor is present
40
        uint8_t State;                          // 7 bit for I2C error counter, highest bit indicates if motor is present
41
        uint8_t ReadMode;                       // select data to read
41
        uint8_t ReadMode;                       // select data to read
42
        // the following bytes must be exactly in that order!
42
        // the following bytes must be exactly in that order!
43
        uint8_t Current;                        // in 0.1 A steps, read back from BL
43
        uint8_t Current;                        // in 0.1 A steps, read back from BL
44
        uint8_t MaxPWM;                         // read back from BL -> is less than 255 if BL is in current limit, not running (250) or starting (40)
44
        uint8_t MaxPWM;                         // read back from BL -> is less than 255 if BL is in current limit, not running (250) or starting (40)
45
        int8_t  Temperature;            // old BL-Ctrl will return a 255 here, the new version the temp. in °C
45
        uint8_t Temperature;            // old BL-Ctrl will return a 255 here, the new version the temp. in °C
46
        int8_t  reserved1;                      // voltage (BL3) or rpm (BL2)
46
        uint8_t RPM;                            // Raw value for RPM
47
        int8_t  reserved2;                      // 0 (BL3) or mAh (BL2)
47
        uint8_t reserved1;                      // Voltage (BL3) or mAh (BL2)
48
        int8_t  Voltage;                        // in 0.1V (BL3 is limited to 255, BL2 is only low-byte)
48
        uint8_t Voltage;                        // in 0.1V (BL3 is limited to 255, BL2 is only low-byte)
49
        int8_t  SlaveI2cError;          // BL2 & BL3
49
        uint8_t SlaveI2cError;          // BL2 & BL3
50
        int8_t  VersionMajor;           // BL2 & BL3
50
        uint8_t VersionMajor;           // BL2 & BL3
51
        int8_t  VersionMinor;           // BL2 & BL3
51
        uint8_t VersionMinor;           // BL2 & BL3
52
        uint8_t NotReadyCnt;            // Counts up is the Motor is not ready during flight -> MotorRestart etc.
52
        uint8_t NotReadyCnt;            // Counts up is the Motor is not ready during flight -> MotorRestart etc.
Line 53... Line 53...
53
} __attribute__((packed)) MotorData_t;
53
} __attribute__((packed)) MotorData_t;