Subversion Repositories Projects

Rev

Rev 135 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 135 Rev 149
1
 
1
 
2
public interface DUBwiseDefinitions
2
public interface DUBwiseDefinitions
3
{
3
{
4
    // id for each state - must just be uniq - order isnt important
4
    // id for each state - must just be uniq - order isnt important
5
    public final static int STATEID_SCANNING         =0;
5
    public final static int STATEID_SCANNING         =0;
6
    public final static int STATEID_DEVICESELECT     =1;
6
    public final static int STATEID_DEVICESELECT     =1;
7
    public final static int STATEID_MAINMENU         =2;
7
    public final static int STATEID_MAINMENU         =2;
8
    public final static int STATEID_MOTORTEST        =3;
8
    public final static int STATEID_MOTORTEST        =3;
9
    public final static int STATEID_SELECT_PARAMSET  =4;
9
    public final static int STATEID_SELECT_PARAMSET  =4;
10
    public final static int STATEID_EDIT_PARAMS      =5;
10
    public final static int STATEID_EDIT_PARAMS      =5;
11
    public final static int STATEID_HANDLE_PARAMS    =6;
11
    public final static int STATEID_HANDLE_PARAMS    =6;
12
    public final static int STATEID_FLIGHTVIEW       =7;
12
    public final static int STATEID_FLIGHTVIEW       =7;
13
    public final static int STATEID_RAWDEBUG         =8;
13
    public final static int STATEID_RAWDEBUG         =8;
14
    public final static int STATEID_KEYCONTROL       =9;
14
    public final static int STATEID_KEYCONTROL       =9;
15
    public final static int STATEID_SETTINGSMENU     =10;
15
    public final static int STATEID_SETTINGSMENU     =10;
16
    public final static int STATEID_STICKVIEW        =11;
16
    public final static int STATEID_STICKVIEW        =11;
17
    public final static int STATEID_CAMMODE          =12;
17
    public final static int STATEID_CAMMODE          =12;
18
    public final static int STATEID_READ_PARAMS      =13;
18
    public final static int STATEID_READ_PARAMS      =13;
19
    public final static int STATEID_GPSVIEW          =14;
19
    public final static int STATEID_GPSVIEW          =14;
20
 
-
 
-
 
20
    public final static int STATEID_FILEOPEN         =15;
-
 
21
    public final static int STATEID_GRAPH            =16;
-
 
22
    public final static int STATEID_CONN_DETAILS     =17;
-
 
23
    public final static int STATEID_IPINPUT          =18;
-
 
24
    public final static int STATEID_PROXY            =19;
21
 
25
 
22
 
26
 
23
    public boolean fullscreen=false;
27
    public boolean fullscreen=false;
24
    public int act_motor=0;
28
    public int act_motor=0;
25
    public int act_motor_increase=0;
29
    public int act_motor_increase=0;
26
    public boolean motor_test_sel_all=false;
30
    public boolean motor_test_sel_all=false;
27
 
31
 
28
 
-
 
29
    public String[] main_menu_items_no_connection= { "Tool Settings","Change Device" , "Quit " };
-
 
30
 
32
 
31
 
33
 
-
 
34
    public final static int ACTIONID_SETTINGS     = 0;
32
    public final static int MAINMENU_NO_CONN_SETTINGS      =0;
35
    public final static int ACTIONID_DEVICESELECT = 1;
-
 
36
    public final static int ACTIONID_DEBUG        = 2;
-
 
37
    public final static int ACTIONID_CONN_DETAILS = 3;
-
 
38
    public final static int ACTIONID_SWITCH_NC    = 4;
-
 
39
    public final static int ACTIONID_SWITCH_FC    = 5;
-
 
40
 
-
 
41
    public final static int ACTIONID_GRAPH        = 6;
-
 
42
    public final static int ACTIONID_LCD          = 7;
-
 
43
    public final static int ACTIONID_RAWDEBUG     = 8;
-
 
44
    public final static int ACTIONID_RCDATA       = 9;
-
 
45
    public final static int ACTIONID_KEYCONTROL   = 10;
-
 
46
    public final static int ACTIONID_MOTORTEST    = 11;
-
 
47
    public final static int ACTIONID_EDIT_PARAMS  = 12;
-
 
48
    public final static int ACTIONID_CAM          = 13;
-
 
49
    public final static int ACTIONID_PROXY        = 14;
33
    public final static int MAINMENU_NO_CONN_DEVICESELECT  =1+MAINMENU_NO_CONN_SETTINGS ;
-
 
-
 
50
    public final static int ACTIONID_GPSDATA      = 15;
-
 
51
   
34
    public final static int MAINMENU_NO_CONN_QUIT          =1+MAINMENU_NO_CONN_DEVICESELECT;
-
 
35
 
-
 
36
 
-
 
37
    public String[] main_menu_items_mk={"Telemetry","Raw Debug", "view RC-data", "MK-KeyControl", "Motor Test" , "Flight Settings","Tool Settings","Remote Cam","Proxy","Change Device" , "Quit " };
-
 
38
 
-
 
39
 
-
 
40
    public final static int MAINMENU_MK_TELEMETRY     =0;
-
 
41
    public final static int MAINMENU_MK_RAWDEBUG      =1+MAINMENU_MK_TELEMETRY;
-
 
42
    public final static int MAINMENU_MK_STICKS        =1+MAINMENU_MK_RAWDEBUG;
-
 
43
    public final static int MAINMENU_MK_KEYCONTROL    =1+MAINMENU_MK_STICKS;
-
 
44
    public final static int MAINMENU_MK_MOTORTEST     =1+MAINMENU_MK_KEYCONTROL;
-
 
-
 
52
    public final static int ACTIONID_QUIT         = 100;
-
 
53
 
45
    public final static int MAINMENU_MK_PARAMS        =1+MAINMENU_MK_MOTORTEST;
54
 
46
    public final static int MAINMENU_MK_SETTINGSMENU  =1+MAINMENU_MK_PARAMS;
-
 
47
    public final static int MAINMENU_MK_CAMMODE       =1+MAINMENU_MK_SETTINGSMENU;
-
 
48
    public final static int MAINMENU_MK_PROXY         =1+MAINMENU_MK_CAMMODE;
-
 
49
    public final static int MAINMENU_MK_DEVICESELECT  =1+MAINMENU_MK_PROXY;
-
 
50
    public final static int MAINMENU_MK_QUIT          =1+MAINMENU_MK_DEVICESELECT;
-
 
51
 
-
 
-
 
55
    public String[] main_menu_items_no_connection  = { "Proxy","Tool Settings"   , "Change Device", "Connection Details" , "Debug DUBwise" , "Quit " };
-
 
56
    public int[]    main_menu_actions_no_connection= { ACTIONID_PROXY, ACTIONID_SETTINGS , ACTIONID_DEVICESELECT , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG  , ACTIONID_QUIT};
52
 
57
 
53
    public String[] main_menu_items_navi={"Telemetry","Raw Debug", "view GPS-Data" ,"Tool Settings","Change Device" , "Quit " };
58
 
54
 
59
    public String[] main_menu_items_mk   ={"Connection Details"   , "switch to NC","Sensor Graph" , "LCD","Raw Debug", "view RC-data", "MK-KeyControl", "Motor Test" , "Flight Settings","Tool Settings","Remote Cam","Proxy","Change Device" , "Debug" , "Quit " };
55
    public final static int MAINMENU_NAVI_TELEMETRY     =0;
60
 
56
    public final static int MAINMENU_NAVI_RAWDEBUG      =1+MAINMENU_NAVI_TELEMETRY;
61
   
57
    public final static int MAINMENU_NAVI_GPSVIEW       =1+MAINMENU_NAVI_RAWDEBUG;
62
    public int[]    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_SETTINGS , ACTIONID_CAM , ACTIONID_PROXY , ACTIONID_DEVICESELECT , ACTIONID_DEBUG  , ACTIONID_QUIT};
58
    public final static int MAINMENU_NAVI_SETTINGS      =1+MAINMENU_NAVI_GPSVIEW ;
63
 
59
    public final static int MAINMENU_NAVI_DEVICESELECT  =1+MAINMENU_NAVI_SETTINGS;
64
 
60
    public final static int MAINMENU_NAVI_QUIT          =1+MAINMENU_NAVI_DEVICESELECT;
65
    public String[] main_menu_items_navi={"Connection Details" , "switch to FC","LCD","Raw Debug", "view GPS-Data" ,"Tool Settings","Change Device" , "Quit " };
61
 
66
 
62
 
67
    public int[]    main_menu_actions_navi = { ACTIONID_CONN_DETAILS , ACTIONID_SWITCH_FC , ACTIONID_LCD , ACTIONID_RAWDEBUG , ACTIONID_GPSDATA , ACTIONID_SETTINGS , ACTIONID_DEVICESELECT , ACTIONID_DEBUG  , ACTIONID_QUIT};
63
 
68
 
64
 
69
 
65
 
70
 
66
    public String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Graph ","FullScreen " ,"Keep BGLight " ,"Back" };
71
    public String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling BG ","FullScreen " ,"Keep BGLight " ,"Back" };
67
    public final static int SETTINGSMENU_CHANGESKIN   =0;
72
    public final static int SETTINGSMENU_CHANGESKIN   =0;
68
    public final static int SETTINGSMENU_SOUNDTOGGLE  =1;
73
    public final static int SETTINGSMENU_SOUNDTOGGLE  =1;
69
    public final static int SETTINGSMENU_VIBRATOGGLE  =2;
74
    public final static int SETTINGSMENU_VIBRATOGGLE  =2;
70
    public final static int SETTINGSMENU_GRAPHTOGGLE  =3;
75
    public final static int SETTINGSMENU_GRAPHTOGGLE  =3;
71
    public final static int SETTINGSMENU_FULLSCREENTOGGLE  =4;
76
    public final static int SETTINGSMENU_FULLSCREENTOGGLE  =4;
72
    public final static int SETTINGSMENU_LIGHTTOGGLE  =5;
77
    public final static int SETTINGSMENU_LIGHTTOGGLE  =5;
73
    public final static int SETTINGSMENU_BACK      =6;
78
    public final static int SETTINGSMENU_BACK      =6;
74
 
79
 
75
    public final static int USER_INTENT_NONE=0;
80
    public final static int USER_INTENT_NONE=0;
76
    public final static int USER_INTENT_RAWDEBUG=1;
81
    public final static int USER_INTENT_RAWDEBUG=1;
77
    public final static int USER_INTENT_PARAMS=2;
82
    public final static int USER_INTENT_PARAMS=2;
-
 
83
    public final static int USER_INTENT_GRAPH=3;
78
}
84
}
79
 
85