Rev 2407 | Rev 2426 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2407 | Rev 2418 | ||
---|---|---|---|
Line 44... | Line 44... | ||
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 | int8_t Temperature; // old BL-Ctrl will return a 255 here, the new version the temp. in °C |
Line 46... | Line 46... | ||
46 | } __attribute__((packed)) MotorData_t; |
46 | } __attribute__((packed)) MotorData_t; |
Line -... | Line 47... | ||
- | 47 | ||
- | 48 | extern MotorData_t Motor[MAX_MOTORS]; |
|
- | 49 | ||
- | 50 | // BitSate |
|
- | 51 | #define BL_BIT_STATE_I2C_OK 0x01 |
|
- | 52 | #define BL_BIT_STATE_I2C_VALUE 0x02 |
|
- | 53 | #define BL_BIT_STATE_I2C_BAD 0x04 |
|
- | 54 | #define BL_BIT_STATE_PPM_OK 0x08 |
|
- | 55 | #define BL_BIT_STATE_MOTOR_RUN 0x10 |
|
- | 56 | ||
- | 57 | typedef struct |
|
- | 58 | { |
|
- | 59 | unsigned char BitSate; |
|
- | 60 | unsigned char Current; |
|
- | 61 | unsigned char State; |
|
- | 62 | unsigned char TemperatureInDeg; |
|
- | 63 | unsigned char Voltage80; |
|
47 | 64 | } __attribute__((packed)) RedundantBl_t; |
|
Line 48... | Line 65... | ||
48 | extern MotorData_t Motor[MAX_MOTORS]; |
65 | extern RedundantBl_t RedundantMotor[MAX_MOTORS]; |
49 | 66 | ||
50 | #define BLCONFIG_REVISION 2 |
67 | #define BLCONFIG_REVISION 2 |