Rev 314 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 314 | Rev 391 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | #define TOOLBOX_H |
20 | #define TOOLBOX_H |
Line 21... | Line 21... | ||
21 | 21 | ||
22 | #include <QString> |
22 | #include <QString> |
23 | #include <QIcon> |
23 | #include <QIcon> |
- | 24 | #include "../global.h" |
|
Line 24... | Line 25... | ||
24 | #include "../global.h" |
25 | #include "../com/Kopter.h" |
25 | 26 | ||
26 | class ToolBox |
27 | class ToolBox |
27 | { |
- | |
28 | public : |
- | |
29 | ToolBox(); |
- | |
30 | static bool Decode64(sRxData &RX, bool Long = true); |
- | |
31 | static QString Encode64(char Data[150],unsigned int Length); |
- | |
32 | static bool check_CRC(QString RXString); |
- | |
33 | static QString add_CRC(QString TXString); |
- | |
34 | static int Data2Char(int *Data , int Start, bool is_signed = true); |
- | |
35 | static int Data2Int(int *Data , int Start, bool is_signed = true); |
- | |
36 | static long Data2Long(int *Data , int Start, bool is_signed = true); |
- | |
37 | - | ||
38 | static int Char2Data(int Data); |
28 | { |
39 | 29 | public : |
|
40 | static QString Data2QString(int Data[150], int Start = 0, int End = 150); |
30 | static QString dataToQString(int Data[150], int Start = 0, int End = 150); |
41 | static QIcon Icon(int ID); |
31 | static QIcon Icon(int ID); |
42 | static QString get_Float(long Wert, int Count); |
32 | static QString get_Float(long Wert, int Count); |
Line 43... | Line 33... | ||
43 | static void Wait(int Time); |
33 | static void wait(int Time); |