Subversion Repositories Projects

Rev

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

Rev 206 Rev 211
Line 2... Line 2...
2
 
2
 
3
 
3
 
Line 4... Line -...
4
public interface DUBwiseDefinitions
-
 
5
{
-
 
6
 
-
 
7
    // id for each state - must just be uniq - order isnt important
-
 
8
    public final static byte STATEID_SCANNING         =0;
-
 
9
    public final static byte STATEID_DEVICESELECT     =1;
-
 
10
    public final static byte STATEID_MAINMENU         =2;
-
 
11
    public final static byte STATEID_MOTORTEST        =3;
-
 
12
    public final static byte STATEID_SELECT_PARAMSET  =4;
-
 
13
    public final static byte STATEID_EDIT_PARAMS      =5;
-
 
14
    public final static byte STATEID_HANDLE_PARAMS    =6;
-
 
15
    public final static byte STATEID_FLIGHTVIEW       =7;
-
 
16
    public final static byte STATEID_RAWDEBUG         =8;
-
 
17
    public final static byte STATEID_KEYCONTROL       =9;
-
 
18
    public final static byte STATEID_SETTINGSMENU     =10;
-
 
19
    public final static byte STATEID_STICKVIEW        =11;
-
 
20
    public final static byte STATEID_CAMMODE          =12;
-
 
21
    public final static byte STATEID_READ_PARAMS      =13;
-
 
22
    public final static byte STATEID_GPSVIEW          =14;
-
 
23
    public final static byte STATEID_FILEOPEN         =15;
-
 
24
    public final static byte STATEID_GRAPH            =16;
-
 
25
    public final static byte STATEID_CONN_DETAILS     =17;
-
 
26
    public final static byte STATEID_IPINPUT          =18;
-
 
27
    public final static byte STATEID_PROXY            =19;
-
 
28
    public final static byte STATEID_TRAFFIC          =20;
-
 
29
    public final static byte STATEID_SELECT_COMPORT   =21;
-
 
30
    public final static byte STATEID_ABOUT            =22;
-
 
31
    public final static byte STATEID_NC_ERRORS        =23;
-
 
32
    public final static byte STATEID_FLASHING         =24;
-
 
33
    public final static byte STATEID_NAMEINPUT        =25;
-
 
34
    public final static byte STATEID_DATABUFF         =26;
-
 
35
 
-
 
36
 
-
 
37
    public boolean fullscreen=false;
-
 
38
    public byte act_motor=0;
-
 
39
    public byte act_motor_increase=0;
-
 
40
    public boolean motor_test_sel_all=false;
-
 
41
 
-
 
42
 
-
 
43
 
-
 
44
    public final static byte ACTIONID_SETTINGS     = 0;
-
 
45
    public final static byte ACTIONID_DEVICESELECT = 1;
-
 
46
    public final static byte ACTIONID_DEBUG        = 2;
-
 
47
    public final static byte ACTIONID_CONN_DETAILS = 3;
-
 
48
    public final static byte ACTIONID_SWITCH_NC    = 4;
-
 
49
    public final static byte ACTIONID_SWITCH_FC    = 5;
-
 
50
 
-
 
51
    public final static byte ACTIONID_GRAPH        = 6;
-
 
52
    public final static byte ACTIONID_LCD          = 7;
-
 
53
    public final static byte ACTIONID_RAWDEBUG     = 8;
-
 
54
    public final static byte ACTIONID_RCDATA       = 9;
-
 
55
    public final static byte ACTIONID_KEYCONTROL   = 10;
-
 
56
    public final static byte ACTIONID_MOTORTEST    = 11;
-
 
57
    public final static byte ACTIONID_EDIT_PARAMS  = 12;
-
 
58
    public final static byte ACTIONID_CAM          = 13;
-
 
59
    public final static byte ACTIONID_PROXY        = 14;
-
 
60
    public final static byte ACTIONID_GPSDATA      = 15;
-
 
61
    public final static byte ACTIONID_TRAFFIC      = 16;
-
 
62
    public final static byte ACTIONID_ABOUT        = 17;
-
 
63
    public final static byte ACTIONID_NC_ERRORS    = 18;
-
 
64
 
-
 
65
 
-
 
66
    public final static byte ACTIONID_WRITE_PARAMS = 19;
-
 
67
    public final static byte ACTIONID_UNDO_PARAMS  = 20;
-
 
68
    public final static byte ACTIONID_MAINMENU     = 21;
-
 
69
   
-
 
70
 
-
 
71
    public final static byte ACTIONID_CHANGESKIN   = 22;
-
 
72
    public final static byte ACTIONID_SOUNDTOGGLE  = 23;
-
 
73
    public final static byte ACTIONID_VIBRATOGGLE  = 24;
-
 
74
    public final static byte ACTIONID_GRAPHTOGGLE  = 25;
-
 
75
    public final static byte ACTIONID_FULLSCREENTOGGLE  = 26;
-
 
76
    public final static byte ACTIONID_LIGHTTOGGLE  =27;
-
 
77
    public final static byte ACTIONID_DATABUFF  =28;
-
 
78
 
-
 
79
 
-
 
80
    public final static byte ACTIONID_SWITCH_MK3MAG  = 29;
-
 
81
    public final static byte ACTIONID_CONNECT_TCP  =30;
-
 
82
    public final static byte ACTIONID_SCAN_BT      =31;
-
 
83
    public final static byte ACTIONID_SELECT_COM   =32;
-
 
84
    public final static byte ACTIONID_PROXY_INPUT  =33;
-
 
85
    public final static byte ACTIONID_FLASH        =34;
-
 
86
    public final static byte ACTIONID_RESET_PARAMS =35;
-
 
87
 
-
 
88
    public final static byte ACTIONID_BACK_TO_CONNDETAILS=36;    
-
 
89
 
-
 
90
 
-
 
91
    public final static byte ACTIONID_QUIT         = 100;
-
 
92
 
-
 
93
 
-
 
94
    public final static String[] main_menu_items_no_connection  = { "Tool Settings" , "Connection" , "Debug DUBwise" , "About","Quit " };
-
 
95
    public final static  byte[]    main_menu_actions_no_connection= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG  , ACTIONID_ABOUT, ACTIONID_QUIT};
-
 
96
 
-
 
97
 
-
 
98
    public final static String[] main_menu_items_incompatible  = { "Tool Settings" , "Connection" , "Debug DUBwise" ,"Flash Firmware", "About","Quit " };
-
 
99
    public final static  byte[]    main_menu_actions_incompatible= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG ,ACTIONID_FLASH , ACTIONID_ABOUT, ACTIONID_QUIT};
-
 
100
 
-
 
101
 
-
 
102
 
-
 
103
    public final static String[] main_menu_items_mk3mag  = { "Tool Settings" , "Connection" , "Flash Firmware" , "switch to NC","Debug DUBwise" , "About","Quit " };
-
 
104
    public final static  byte[]    main_menu_actions_mk3mag= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_FLASH, ACTIONID_SWITCH_NC, ACTIONID_DEBUG  , ACTIONID_ABOUT, ACTIONID_QUIT};
-
 
105
 
-
 
106
 
-
 
107
    public final static  String[] main_menu_items_mk   ={"Connection", "switch to NC","Sensor Graph" , "LCD","Raw Debug", "view RC-data", "MK-KeyControl", "Motor Test" , "Flight Settings","Flash Firmware","Tool Settings","Remote Cam", "Debug" ,"About", "Quit" };
-
 
108
 
-
 
109
   
-
 
110
    public  final static byte[]    main_menu_actions_mk = { ACTIONID_CONN_DETAILS , ACTIONID_SWITCH_NC  , ACTIONID_GRAPH , ACTIONID_LCD , ACTIONID_RAWDEBUG , ACTIONID_RCDATA , ACTIONID_KEYCONTROL , ACTIONID_MOTORTEST , ACTIONID_EDIT_PARAMS,ACTIONID_FLASH , ACTIONID_SETTINGS , ACTIONID_CAM ,  ACTIONID_DEBUG  , ACTIONID_ABOUT , ACTIONID_QUIT};
-
 
111
 
-
 
112
 
-
 
113
    public  final static String[] main_menu_items_navi={"Connection" , "view Errors", "switch to FC","switch to MK3MAG","LCD","Raw Debug", "view GPS-Data" ,"Flash Firmware","Tool Settings", "Debug" ,"About", "Quit" };
-
 
114
 
-
 
115
    public  final static byte[]    main_menu_actions_navi = { ACTIONID_CONN_DETAILS , ACTIONID_NC_ERRORS , ACTIONID_SWITCH_FC  , ACTIONID_SWITCH_MK3MAG, ACTIONID_LCD , ACTIONID_RAWDEBUG , ACTIONID_GPSDATA , ACTIONID_FLASH , ACTIONID_SETTINGS  , ACTIONID_DEBUG   , ACTIONID_ABOUT, ACTIONID_QUIT};
-
 
116
 
-
 
117
 
-
 
118
 
-
 
119
    public  final static String[] handle_params_menu_items={"write to MK","don't write to MK","discard/read again","all to default"};
-
 
120
    public  final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_MAINMENU,ACTIONID_UNDO_PARAMS,ACTIONID_RESET_PARAMS};
-
 
121
 
-
 
122
 
-
 
123
    public final static String[] conn_details_menu_items={ "packet Traffic","view Data","connect via TCP/IP","connect via BT","connect via COM","set Proxy","back" };
-
 
124
 
-
 
125
 
-
 
126
    public  final static byte[]  conn_details_menu_actions={ ACTIONID_TRAFFIC,ACTIONID_DATABUFF,ACTIONID_CONNECT_TCP,ACTIONID_SCAN_BT, ACTIONID_SELECT_COM,ACTIONID_PROXY_INPUT,ACTIONID_MAINMENU};
-
 
127
 
-
 
128
 
-
 
129
    public final static  String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling BG ","FullScreen " ,
-
 
130
//#if devicecontrol=="on"
-
 
131
                                         "Keep BGLight " ,
-
 
132
//#endif
-
 
133
                                         "Back" };
-
 
134
 
-
 
135
 
-
 
136
    public  final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE  , ACTIONID_FULLSCREENTOGGLE ,
-
 
137
//#if devicecontrol=="on"
-
 
138
                                         ACTIONID_LIGHTTOGGLE,
-
 
139
//#endif
-
 
140
                                         ACTIONID_MAINMENU };
-
 
141
 
-
 
142
 
-
 
143
 
-
 
144
    public final static String[] onlyback_menu_items={"back" };
-
 
145
    public final static byte[]    back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS};
4
public interface DUBwiseDefinitions
146
 
5
{
147
 
6
 
148
    public final static byte USER_INTENT_NONE=0;
7
    public final static byte USER_INTENT_NONE=0;
149
    public final static byte USER_INTENT_RAWDEBUG=1;
8
    public final static byte USER_INTENT_RAWDEBUG=1;
150
    public final static byte USER_INTENT_PARAMS=2;
9
    public final static byte USER_INTENT_PARAMS=2;
Line 151... Line -...
151
    public final static byte USER_INTENT_GRAPH=3;
-
 
152
    public final static byte USER_INTENT_RCDATA=4;
-
 
153
    public final static byte USER_INTENT_LCD=5;
-
 
154
 
-
 
155
    final static byte SKINID_DARK= 0;
-
 
156
    final static byte SKINID_LIGHT = 1;
-
 
157
 
-
 
158
 
-
 
159
 
-
 
160
    final static String[] credits= {
-
 
161
//#expand "About DUBwise v%VERSION%",
-
 
162
        "",
-
 
163
        "Digital UFO",
-
 
164
        "Broadcasting With ",
-
 
165
        "Byteelligent Service",
-
 
166
        "Equipment",
-
 
167
        "",
-
 
168
        "2007-2008 by ",
-
 
169
        "Marcus LiGi B"+(char)(252)+"schleb",
-
 
170
        "mailto:ligi"+"@"+"ligi.de",
-
 
171
        "",
-
 
172
        "Licence:",
-
 
173
        "Creative Commons(CC)",
-
 
174
        " -Attribution",
-
 
175
        " -Noncommercial",
-
 
176
        " -Share Alike",
-
 
177
        " -No Violence",
-
 
178
        " ",
-
 
179
        "Credits: ",
-
 
180
        " -HolgerB&IngoB",
-
 
181
        " -CaScAdE",
-
 
182
        " -Orion8",
-
 
183
        " -Joko",
-
 
184
        " -Speedy",
-
 
185
        " -Jamiro",
-
 
186
        "",
-
 
187
        "More Infos:",
-
 
188
        " www.ligi.de",
-
 
189
        " www.mikrokopter.com"};
-
 
190
               
-
 
191
 
-
 
Line 192... Line -...
192
    public final static int[] default_ip={192,168,1,42,4242};
-
 
193
 
10
    public final static byte USER_INTENT_GRAPH=3;
194
 
-
 
195
 
-
 
196
 
-
 
197
    public String[] main_menu_items={"Telemetry","Raw Debug-Values", "RC-Data", "pilot UFO", "Motor Test" , "Flight Settings","(NA)Tool Settings","(NA)Remote Camera","(NA)Relay","(NA)Change Device" , "Quit " };
-
 
198
    public final static int MAINMENU_TELEMETRY     =0;
-
 
199
    public final static int MAINMENU_RAWDEBUG      =1+MAINMENU_TELEMETRY;
-
 
200
    public final static int MAINMENU_STICKS        =1+MAINMENU_RAWDEBUG;
-
 
201
    public final static int MAINMENU_KEYCONTROL    =1+MAINMENU_STICKS;
-
 
202
    public final static int MAINMENU_MOTORTEST     =1+MAINMENU_KEYCONTROL;
-
 
203
    public final static int MAINMENU_PARAMS        =1+MAINMENU_MOTORTEST;
-
 
204
    public final static int MAINMENU_SETTINGSMENU  =1+MAINMENU_PARAMS;
-
 
205
    public final static int MAINMENU_CAMMODE       =1+MAINMENU_SETTINGSMENU;
-
 
206
    public final static int MAINMENU_PROXY         =1+MAINMENU_CAMMODE;
-
 
207
    public final static int MAINMENU_DEVICESELECT  =1+MAINMENU_PROXY;
11
    public final static byte USER_INTENT_RCDATA=4;
208
    public final static int MAINMENU_QUIT          =1+MAINMENU_DEVICESELECT;
-
 
209
 
-
 
210
    //    public String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Graph ","FullScreen " ,"Keep BGLight " ,"Back" };
-
 
211
    public final static int SETTINGSMENU_CHANGESKIN   =0;
-
 
212
    public final static int SETTINGSMENU_SOUNDTOGGLE  =1;
-
 
Line -... Line 12...
-
 
12
    public final static byte USER_INTENT_LCD=5;
-
 
13
 
-
 
14
 
213
    public final static int SETTINGSMENU_VIBRATOGGLE  =2;
15
    public final static byte GPS_FORMAT_DECIMAL=0;