Subversion Repositories Projects

Rev

Rev 206 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


public interface DUBwiseDefinitions
{

    // id for each state - must just be uniq - order isnt important
    public final static byte STATEID_SCANNING         =0;
    public final static byte STATEID_DEVICESELECT     =1;
    public final static byte STATEID_MAINMENU         =2;
    public final static byte STATEID_MOTORTEST        =3;
    public final static byte STATEID_SELECT_PARAMSET  =4;
    public final static byte STATEID_EDIT_PARAMS      =5;
    public final static byte STATEID_HANDLE_PARAMS    =6;
    public final static byte STATEID_FLIGHTVIEW       =7;
    public final static byte STATEID_RAWDEBUG         =8;
    public final static byte STATEID_KEYCONTROL       =9;
    public final static byte STATEID_SETTINGSMENU     =10;
    public final static byte STATEID_STICKVIEW        =11;
    public final static byte STATEID_CAMMODE          =12;
    public final static byte STATEID_READ_PARAMS      =13;
    public final static byte STATEID_GPSVIEW          =14;
    public final static byte STATEID_FILEOPEN         =15;
    public final static byte STATEID_GRAPH            =16;
    public final static byte STATEID_CONN_DETAILS     =17;
    public final static byte STATEID_IPINPUT          =18;
    public final static byte STATEID_PROXY            =19;
    public final static byte STATEID_TRAFFIC          =20;
    public final static byte STATEID_SELECT_COMPORT   =21;
    public final static byte STATEID_ABOUT            =22;
    public final static byte STATEID_NC_ERRORS        =23;
    public final static byte STATEID_FLASHING         =24;
    public final static byte STATEID_NAMEINPUT        =25;
    public final static byte STATEID_DATABUFF         =26;


    public boolean fullscreen=false;
    public byte act_motor=0;
    public byte act_motor_increase=0;
    public boolean motor_test_sel_all=false;



    public final static byte ACTIONID_SETTINGS     = 0;
    public final static byte ACTIONID_DEVICESELECT = 1;
    public final static byte ACTIONID_DEBUG        = 2;
    public final static byte ACTIONID_CONN_DETAILS = 3;
    public final static byte ACTIONID_SWITCH_NC    = 4;
    public final static byte ACTIONID_SWITCH_FC    = 5;

    public final static byte ACTIONID_GRAPH        = 6;
    public final static byte ACTIONID_LCD          = 7;
    public final static byte ACTIONID_RAWDEBUG     = 8;
    public final static byte ACTIONID_RCDATA       = 9;
    public final static byte ACTIONID_KEYCONTROL   = 10;
    public final static byte ACTIONID_MOTORTEST    = 11;
    public final static byte ACTIONID_EDIT_PARAMS  = 12;
    public final static byte ACTIONID_CAM          = 13;
    public final static byte ACTIONID_PROXY        = 14;
    public final static byte ACTIONID_GPSDATA      = 15;
    public final static byte ACTIONID_TRAFFIC      = 16;
    public final static byte ACTIONID_ABOUT        = 17;
    public final static byte ACTIONID_NC_ERRORS    = 18;


    public final static byte ACTIONID_WRITE_PARAMS = 19;
    public final static byte ACTIONID_UNDO_PARAMS  = 20;
    public final static byte ACTIONID_MAINMENU     = 21;
   

    public final static byte ACTIONID_CHANGESKIN   = 22;
    public final static byte ACTIONID_SOUNDTOGGLE  = 23;
    public final static byte ACTIONID_VIBRATOGGLE  = 24;
    public final static byte ACTIONID_GRAPHTOGGLE  = 25;
    public final static byte ACTIONID_FULLSCREENTOGGLE  = 26;
    public final static byte ACTIONID_LIGHTTOGGLE  =27;
    public final static byte ACTIONID_DATABUFF  =28;


    public final static byte ACTIONID_SWITCH_MK3MAG  = 29;
    public final static byte ACTIONID_CONNECT_TCP  =30;
    public final static byte ACTIONID_SCAN_BT      =31;
    public final static byte ACTIONID_SELECT_COM   =32;
    public final static byte ACTIONID_PROXY_INPUT  =33;
    public final static byte ACTIONID_FLASH        =34;
    public final static byte ACTIONID_RESET_PARAMS =35;

    public final static byte ACTIONID_BACK_TO_CONNDETAILS=36;    


    public final static byte ACTIONID_QUIT         = 100;


    public final static String[] main_menu_items_no_connection  = { "Tool Settings" , "Connection" , "Debug DUBwise" , "About","Quit " };
    public final static  byte[]    main_menu_actions_no_connection= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG  , ACTIONID_ABOUT, ACTIONID_QUIT};


    public final static String[] main_menu_items_incompatible  = { "Tool Settings" , "Connection" , "Debug DUBwise" ,"Flash Firmware", "About","Quit " };
    public final static  byte[]    main_menu_actions_incompatible= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_DEBUG ,ACTIONID_FLASH , ACTIONID_ABOUT, ACTIONID_QUIT};



    public final static String[] main_menu_items_mk3mag  = { "Tool Settings" , "Connection" , "Flash Firmware" , "switch to NC","Debug DUBwise" , "About","Quit " };
    public final static  byte[]    main_menu_actions_mk3mag= { ACTIONID_SETTINGS , ACTIONID_CONN_DETAILS, ACTIONID_FLASH, ACTIONID_SWITCH_NC, ACTIONID_DEBUG  , ACTIONID_ABOUT, ACTIONID_QUIT};


    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" };

   
    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};


    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" };

    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};



    public  final static String[] handle_params_menu_items={"write to MK","don't write to MK","discard/read again","all to default"};
    public  final static byte[] handle_params_menu_actions={ACTIONID_WRITE_PARAMS,ACTIONID_MAINMENU,ACTIONID_UNDO_PARAMS,ACTIONID_RESET_PARAMS};


    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" };


    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};


    public final static  String[] settings_menu_items={"Skin ","Sound ","Vibra " ,"Scrolling_BG ","FullScreen " ,
//#if devicecontrol=="on"
                                         "Keep_BGLight " ,
//#endif
                                         "Back" };
    public final static byte SETTINGSMENU_CHANGESKIN   =0;

    public  final static byte[] settings_menu_actions={ ACTIONID_CHANGESKIN,ACTIONID_SOUNDTOGGLE, ACTIONID_VIBRATOGGLE , ACTIONID_GRAPHTOGGLE  , ACTIONID_FULLSCREENTOGGLE ,
//#if devicecontrol=="on"
                                         ACTIONID_LIGHTTOGGLE,
//#endif
                                         ACTIONID_MAINMENU };



    public final static String[] onlyback_menu_items={"back" };
    public final static byte[]    back_to_conndetails_actions={ACTIONID_BACK_TO_CONNDETAILS};


    public final static byte USER_INTENT_NONE=0;
    public final static byte USER_INTENT_RAWDEBUG=1;
    public final static byte USER_INTENT_PARAMS=2;
    public final static byte USER_INTENT_GRAPH=3;
    public final static byte USER_INTENT_RCDATA=4;
    public final static byte USER_INTENT_LCD=5;

    final static byte SKINID_DARK= 0;
    final static byte SKINID_LIGHT = 1;



    final static String[] credits= {
//#expand "About DUBwise v%VERSION%",
        "",
        "Digital UFO",
        "Broadcasting With ",
        "Byteelligent Service",
        "Equipment",
        "",
        "2007-2008 by ",
        "Marcus LiGi B"+(char)(252)+"schleb",
        "mailto:ligi"+"@"+"ligi.de",
        "",
        "Licence:",
        "Creative Commons(CC)",
        " -Attribution",
        " -Noncommercial",
        " -Share Alike",
        " -No Violence",
        " ",
        "Credits: ",
        " -HolgerB&IngoB",
        " -CaScAdE",
        " -Orion8",
        " -Joko",
        " -Speedy",
        " -Jamiro",
        "",
        "More Infos:",
        " www.ligi.de",
        " www.mikrokopter.com"};
               

    public final static int[] default_ip={192,168,1,42,4242};
}