Hallo Tom,
gut, das packt auch der 8Mhz 328.
VG Michael
PS: Soweit ok?
gut, das packt auch der 8Mhz 328.
VG Michael
PS: Soweit ok?
Code:
#define HOTT_VARIO_PACKET_ID 0x80
#define HOTT_VARIO_PACKET_ID 0x89
#define HOTT_GPS_PACKET_ID 0x8A
#define HOTT_GENERAL_PACKET_ID 0x8D // General_Air = General_Engine
#define HOTT_ELECTRIC_AIR_PACKET_ID 0x8E
typedef struct
{
uint8_t StartByte; // 0x7C
uint8_t Packet_ID; // HOTT_ELECTRIC_AIR_PACKET_ID
uint8_t WarnBeep; // Anzahl der Töne 0..36
uint8_t VoltageCell1; // 208 = 4,16V (Voltage * 50 = Wert)
uint8_t VoltageCell2; // 209 = 4,18V
uint8_t VoltageCell3; //
uint8_t VoltageCell4; //
uint8_t VoltageCell5; //
uint8_t VoltageCell6; //
uint8_t VoltageCell7; //
uint8_t VoltageCell8; //
uint8_t VoltageCell9; //
uint8_t VoltageCell10; //
uint8_t VoltageCell11; //
uint8_t VoltageCell12; //
uint8_t VoltageCell13; //
uint8_t VoltageCell14; //
uint16_t Battery1; // 51 = 5,1V
uint16_t Battery2; // 51 = 5,1V
uint8_t Temperature1; // 44 = 24°C, 0 = -20°C
uint8_t Temperature2; // 44 = 24°C, 0 = -20°C
int16_t Altitude; //
uint16_t Current; // 1 = 0.1A
uint16_t InputVoltage; // 66 = 6,6V
uint16_t Capacity; // 1 = 10mAh
uint16_t m_sec; // 30000 = 0
uint16_t m_3sec; // 120 = 0
uint8_t NullByte1; // 0x00
uint8_t NullByte2; // 0x00
uint8_t NullByte3; // 0x00
uint8_t NullByte4; // 0x00
uint8_t NullByte5; // 0x00
uint8_t NullByte6; // 0x00
uint8_t NullByte7; // 0x00
uint8_t NullByte8; // 0x00
uint8_t EndByte; // 0x7D
uint8_t CRC; // CRC
} ElectricAirPacket_t; // Electric Air Modul Module