Subversion Repositories FlightCtrl

Rev

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

Rev 1943 Rev 1944
Line 1... Line 1...
1
#ifndef _HOTTMENU_H
1
#ifndef _HOTTMENU_H
2
#define _HOTTMENU_H
2
#define _HOTTMENU_H
Line 3... Line 3...
3
 
3
 
Line 4... Line 4...
4
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
4
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
5
 
5
 
Line 6... Line 6...
6
#define MAX_ERR_NUMBER 22
6
#define MAX_ERR_NUMBER 23
7
extern const char PROGMEM NC_ERROR_TEXT[MAX_ERR_NUMBER][17];
7
extern const char PROGMEM NC_ERROR_TEXT[MAX_ERR_NUMBER][17];
Line 23... Line 23...
23
extern volatile unsigned char HoTTBlink;
23
extern volatile unsigned char HoTTBlink;
Line 24... Line 24...
24
 
24
 
25
typedef struct
25
typedef struct
26
{
26
{
27
  unsigned char StartByte;      // 0x7C
27
  unsigned char StartByte;      // 0x7C
28
  unsigned char Packet_ID;      // HOTT_ELECTRIC_AIR_PACKET_ID  
28
  unsigned char Packet_ID;      // HOTT_GENERAL_PACKET_ID       
29
  unsigned char WarnBeep;       // Anzahl der Töne 0..36
29
  unsigned char WarnBeep;       // Anzahl der Töne 0..36
30
  unsigned char VoltageCell1;   // 208 = 4,16V  (Voltage * 50 = Wert)
30
  unsigned char VoltageCell1;   // 208 = 4,16V  (Voltage * 50 = Wert)
31
  unsigned char VoltageCell2;   // 209 = 4,18V
31
  unsigned char VoltageCell2;   // 209 = 4,18V
32
  unsigned char VoltageCell3;   // 
32
  unsigned char VoltageCell3;   // 
Line 36... Line 36...
36
  unsigned int  Battery1;               // 51  = 5,1V
36
  unsigned int  Battery1;               // 51  = 5,1V
37
  unsigned int  Battery2;               // 51  = 5,1V
37
  unsigned int  Battery2;               // 51  = 5,1V
38
  unsigned char Temperature1;   // 44 = 24°C, 0 = -20°C
38
  unsigned char Temperature1;   // 44 = 24°C, 0 = -20°C
39
  unsigned char Temperature2;   // 44 = 24°C, 0 = -20°C
39
  unsigned char Temperature2;   // 44 = 24°C, 0 = -20°C
40
  unsigned char FuelPercent;
40
  unsigned char FuelPercent;
41
  unsigned int  FuelCapacity;  
41
    signed int  FuelCapacity;  
42
  unsigned int  Rpm;  
42
  unsigned int  Rpm;  
43
  unsigned int  Altitude;      
43
  unsigned int  Altitude;      
44
  unsigned int  m_sec;              // 3000 = 0
44
  unsigned int  m_sec;              // 3000 = 0
45
  unsigned char m_3sec;             // 120 = 0
45
  unsigned char m_3sec;             // 120 = 0
46
  unsigned int  Current;                // 1 = 0.1A
46
  unsigned int  Current;                // 1 = 0.1A
Line 72... Line 72...
72
  unsigned char VoltageCell14;  // 
72
  unsigned char VoltageCell14;  // 
73
  unsigned int  Battery1;               // 51  = 5,1V
73
  unsigned int  Battery1;               // 51  = 5,1V
74
  unsigned int  Battery2;               // 51  = 5,1V
74
  unsigned int  Battery2;               // 51  = 5,1V
75
  unsigned char Temperature1;   // 44 = 24°C, 0 = -20°C
75
  unsigned char Temperature1;   // 44 = 24°C, 0 = -20°C
76
  unsigned char Temperature2;   // 44 = 24°C, 0 = -20°C
76
  unsigned char Temperature2;   // 44 = 24°C, 0 = -20°C
77
  unsigned int  Altitude;      
77
    signed int  Altitude;      
78
  unsigned int  Current;                // 1 = 0.1A
78
  unsigned int  Current;                // 1 = 0.1A
79
  unsigned int  InputVoltage;   // 66  = 6,6V
79
  unsigned int  InputVoltage;   // 66  = 6,6V
80
  unsigned int  Capacity;               // 1  = 10mAh
80
  unsigned int  Capacity;               // 1  = 10mAh
81
  unsigned int  m_sec;              // 30000 = 0
81
  unsigned int  m_sec;              // 30000 = 0
82
  unsigned int  m_3sec;             // 120 = 0
82
  unsigned int  m_3sec;             // 120 = 0
Line 89... Line 89...
89
typedef struct
89
typedef struct
90
{
90
{
91
  unsigned char StartByte;      // 0x7C
91
  unsigned char StartByte;      // 0x7C
92
  unsigned char Packet_ID;      // 0x89  - Vario ID 
92
  unsigned char Packet_ID;      // 0x89  - Vario ID 
93
  unsigned char WarnBeep;       // Anzahl der Töne 0..36
93
  unsigned char WarnBeep;       // Anzahl der Töne 0..36
94
  unsigned int Altitude;            // 500 = 0m
94
    signed int Altitude;            // 500 = 0m
95
  unsigned int MaxAltitude;         // 500 = 0m
95
    signed int MaxAltitude;         // 500 = 0m
96
  unsigned int MinAltitude;         // 500 = 0m
96
    signed int MinAltitude;         // 500 = 0m
97
  unsigned int m_sec;               // 30000 = 0
97
  unsigned int m_sec;               // 30000 = 0
98
  unsigned int m_3sec;              // 30000 = 0
98
  unsigned int m_3sec;              // 30000 = 0
99
  unsigned int m_10sec;         // 
99
  unsigned int m_10sec;         // 
100
  unsigned char NullByte;       // 0x00
100
  unsigned char NullByte;       // 0x00
101
  unsigned char EndByte;                // 0x7D
101
  unsigned char EndByte;                // 0x7D
Line 117... Line 117...
117
  unsigned char Lon_G;      //12
117
  unsigned char Lon_G;      //12
118
  unsigned char Lon_M;      //13
118
  unsigned char Lon_M;      //13
119
  unsigned char Lon_Sek1;       //14    
119
  unsigned char Lon_Sek1;       //14    
120
  unsigned char Lon_Sek2;       //15    
120
  unsigned char Lon_Sek2;       //15    
121
  unsigned int Distance;        //16+17    // 9000 = 0m
121
  unsigned int Distance;        //16+17    // 9000 = 0m
122
  unsigned int Altitude;        //18+19    // 500 = 0m
122
    signed int Altitude;        //18+19    // 500 = 0m
123
  unsigned int m_sec;           //20+21    // 3000 = 0
123
  unsigned int m_sec;           //20+21    // 3000 = 0
124
  unsigned int  m_3sec;         // 120 = 0
124
  unsigned int  m_3sec;         // 120 = 0
125
  unsigned int  m_10sec;                // 
125
  unsigned int  m_10sec;                // 
126
  unsigned char NullByte;       // 0x00
126
  unsigned char NullByte;       // 0x00
127
  unsigned char NullByte1;      // 0x00
127
  unsigned char NullByte1;      // 0x00