Subversion Repositories Projects

Rev

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

Rev 399 Rev 440
Line 14... Line 14...
14
 
14
 
15
class Handler {
15
class Handler {
16
    private:
16
    private:
Line 17... Line -...
17
        Communication * com;
-
 
18
 
-
 
19
        // current LCD page
-
 
20
        int lcd_cur;
-
 
21
        //max count of LCD pages
17
        Communication * com;
22
        int lcd_max;
18
 
23
        //buffer to send data
19
        KopterData * data;
-
 
20
        sRxData rxData;
24
        //char tx_data[150];
21
    public:
25
    public:
22
 
26
        Handler(Communication * com);
23
        Handler(Communication * com, KopterData * data);
27
        //FlightCtrl commands
24
        //FlightCtrl commands
28
        void get_flightctrl_settings(int index);
25
        void get_flightctrl_settings(int index);
-
 
26
        void set_flightctrl_settings(char * tx_data);
29
        void set_flightctrl_settings(char * tx_data);
27
        void motor_test(sMotor motor);
30
        void motor_test(sMotor motor);
28
        void reset_motor();
31
        void read_mixer();
29
        void read_motor_mixer();
Line 32... Line 30...
32
        void write_mixer(char * tx_data, int length);
30
        void write_motor_mixer(char * tx_data, int length);
33
        void get_motor_config();
31
        int get_motor_config(char * tx_data);
34
 
32
 
35
        //NaviCtrl commands
33
        //NaviCtrl commands
Line 55... Line 53...
55
        void lcd_down();
53
        void lcd_down();
56
        void get_version();
54
        void get_version();
57
        void get_ppm_channels();
55
        void get_ppm_channels();
Line 58... Line 56...
58
 
56
 
59
        void receive_data(sRxData rx);
-
 
60
       
57
        void receive_data(sRxData rx);
Line 61... Line 58...
61
};
58
};
62
 
59