Rev 2183 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#include "libfc.h"
#include "printf_P.h"
#include "main.h"
#include "spi.h"
#include "capacity.h"
#include "jeti_ex.h"
#include "hottmenu.h"
#if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
JetiExPacket_t JetiExData[JETI_EX_PARAMETER_COUNT + 1] = // Parameter count + DeviceName (ID0)
{
// Label[10] unit[3], data type, Data , position of decimal point
// "1234567890", "123",
{ "-= M K =- " , " ", 1, 0 , 0 }, // first one is device name // datatype 1 = -8192...8192
{ "Spannung " , "V ", 1, 0 , 1 }, // ID 1
{ "Strom " , "A ", 1, 0 , 1 }, // ID 2
{ "Kapazitaet" , "mAh", 1, 0 , 2 }, // ID 3
{ "Hoehe " , "m ", 1, 0 , 0 }, // ID 4
{ "Kompass " , "° ", 1, 0 , 0 }, // ID 5
{ "Sateliten " , " ", 1, 0 , 0 }, // ID 6
{ "Geschwind." , "m/s", 1, 0 , 0 }, // ID 7
{ "Entfernung" , "m ", 1, 0 , 0 }, // ID 8
{ "Home-Richt" , "° ", 1, 0 , 0 }, // ID 9
{ "max.Temp. " , "°C ", 1, 0 , 0 }, // ID 10
{ "Magnetfeld" , "% ", 1, 0 , 0 }, // ID 11
{ "Vario " , " ", 1, 0 , 0 }, // ID 12
{ "Errorcode " , " ", 1, 0 , 0 }, // ID 13
{ "frei " , " ", 1 0 , 3 }, // ID 14
{ "frei " , " ", 1 0 , 3 }, // ID 15
};
// --------------------------------------------------------------------------------------------------
void JetiEX_Update(void)
{
GetHottestBl();
JetiExData[1].Value = UBat;
JetiExData[2].Value = Capacity.ActualCurrent;
JetiExData[3].Value = Capacity.UsedCapacity / 10;
JetiExData[4].Value = HoehenWert / 100;
JetiExData[5].Value = KompassValue;
JetiExData[6].Value = GPSInfo.NumOfSats;
JetiExData[7].Value = GPSInfo.Speed;
JetiExData[8].Value = GPSInfo.HomeDistance / 10;
JetiExData[9].Value = GPSInfo.HomeBearing;
JetiExData[10].Value = MaxBlTempertaure;
JetiExData[11].Value = EarthMagneticField;
JetiExData[12].Value = 0;
JetiExData[13].Value = NC_ErrorCode;
}
#endif