Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2182 | ingob | 1 | #include "libfc.h" |
2 | #include "printf_P.h" |
||
3 | #include "main.h" |
||
4 | #include "spi.h" |
||
5 | #include "capacity.h" |
||
6 | #include "jeti_ex.h" |
||
7 | #include "hottmenu.h" |
||
8 | |||
9 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
||
10 | |||
11 | |||
12 | |||
13 | JetiExPacket_t JetiExData[JETI_EX_PARAMETER_COUNT + 1] = // Parameter count + DeviceName (ID0) |
||
14 | { |
||
15 | // Label[10] unit[3], data type, Data , position of decimal point |
||
16 | // "1234567890", "123", |
||
17 | { "-= M K =- " , " ", 1, 0 , 0 }, // first one is device name // datatype 1 = -8192...8192 |
||
2183 | holgerb | 18 | { "Voltage " , "V ", 1, 0 , 1 }, // ID 1 |
19 | { "Current " , "A ", 1, 0 , 1 }, // ID 2 |
||
20 | { "Capacity " , "Ah ", 1, 0 , 2 }, // ID 3 |
||
21 | { "Altitude " , "m ", 1, 0 , 0 }, // ID 4 |
||
22 | { "Compass " , "° ", 1, 0 , 0 }, // ID 5 |
||
23 | { "Sats " , " ", 1, 0 , 0 }, // ID 6 |
||
24 | { "Speed " , "m/s", 1, 0 , 0 }, // ID 7 |
||
25 | { "Distance " , "m ", 1, 0 , 0 }, // ID 8 |
||
26 | { "Home-Dir " , "° ", 1, 0 , 0 }, // ID 9 |
||
2182 | ingob | 27 | { "max.Temp. " , "°C ", 1, 0 , 0 }, // ID 10 |
2183 | holgerb | 28 | { "Magn.field" , "% ", 1, 0 , 0 }, // ID 11 |
2182 | ingob | 29 | { "Vario " , " ", 1, 0 , 0 }, // ID 12 |
2183 | holgerb | 30 | { "ErrorCode " , " ", 1, 0 , 0 }, // ID 13 |
31 | { "frei " , " ", 1, 0 , 3 }, // ID 14 |
||
32 | { "frei " , " ", 1, 0 , 3 }, // ID 15 |
||
2182 | ingob | 33 | }; |
34 | |||
35 | |||
36 | // -------------------------------------------------------------------------------------------------- |
||
37 | void JetiEX_Update(void) |
||
38 | { |
||
39 | GetHottestBl(); |
||
40 | |||
41 | JetiExData[1].Value = UBat; |
||
42 | JetiExData[2].Value = Capacity.ActualCurrent; |
||
43 | JetiExData[3].Value = Capacity.UsedCapacity / 10; |
||
44 | JetiExData[4].Value = HoehenWert / 100; |
||
45 | JetiExData[5].Value = KompassValue; |
||
46 | JetiExData[6].Value = GPSInfo.NumOfSats; |
||
47 | JetiExData[7].Value = GPSInfo.Speed; |
||
48 | JetiExData[8].Value = GPSInfo.HomeDistance / 10; |
||
49 | JetiExData[9].Value = GPSInfo.HomeBearing; |
||
50 | JetiExData[10].Value = MaxBlTempertaure; |
||
51 | JetiExData[11].Value = EarthMagneticField; |
||
52 | JetiExData[12].Value = 0; |
||
53 | JetiExData[13].Value = NC_ErrorCode; |
||
2183 | holgerb | 54 | |
2182 | ingob | 55 | } |
56 | #endif |