Subversion Repositories FlightCtrl

Rev

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

Rev 210 Rev 303
Line 26... Line 26...
26
 
26
 
27
    public void run()
27
    public void run()
28
    {
28
    {
29
        while(true)
29
        while(true)
30
            {
30
            {
31
               
31
                try {
32
                if (mk.connected)
32
                if (mk.connected)
-
 
33
                    {
33
                    {
34
 
Line 34... Line 35...
34
                        trigger_LCD();
35
                        trigger_LCD();
35
                       
36
                       
36
                    }
37
                    }
Line 37... Line 38...
37
                else
38
                else
38
                    {
39
                    {
39
 
40
 
40
                    }
41
                    }
41
                try { Thread.sleep(100); }
42
                 Thread.sleep(100); }
Line 51... Line 52...
51
            LCD_str[row]+=(char)data[foo];
52
            LCD_str[row]+=(char)data[foo];
52
    }
53
    }
Line 53... Line 54...
53
 
54
 
54
    public void trigger_LCD()
55
    public void trigger_LCD()
55
    {
-
 
56
        int[] params=new int[3];
-
 
57
        params[0]=act_key;
-
 
58
        params[1]=0;
56
    {
Line -... Line 57...
-
 
57
        try {
-
 
58
 
-
 
59
            int[] params=new int[3];
-
 
60
            params[0]=act_key;
-
 
61
            params[1]=0;
59
        params[2]=0;
62
            params[2]=0;
60
 
63
           
-
 
64
            mk.send_command(0,'h',params);
-
 
65
            act_key=0;
61
        mk.send_command(0,'h',params);
66
        }
Line 62... Line 67...
62
        act_key=0;
67
        catch (Exception e)  {   }