Subversion Repositories Projects

Rev

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

Rev 442 Rev 449
Line 1... Line 1...
1
#ifndef HANDLER_H
1
#ifndef HANDLER_H
2
#define HANDLER_H
2
#define HANDLER_H
3
#include <string>
-
 
4
#include "Parser.h"
3
#include "Parser.h"
5
#include "Communication.h"
4
#include "Communication.h"
6
#include "Kopter.h"
5
#include "Kopter.h"
7
#include "../Parameter_Positions.h"
6
#include "../Parameter_Positions.h"
8
#include "../typedefs.h"
7
#include "../typedefs.h"
Line 14... Line 13...
14
 
13
 
15
class Handler {
14
class Handler {
16
    private:
15
    private:
Line 17... Line -...
17
        Communication * com;
-
 
18
 
16
        Communication * com;
19
        sRxData rxData;
17
 
-
 
18
    public:
20
    public:
19
        KopterData * data;
-
 
20
 
21
        KopterData * data;
21
        Handler(Communication * com, KopterData * data);
22
        Handler(Communication * com, KopterData * data);
22
 
23
        //FlightCtrl commands
23
        //FlightCtrl commands
24
        void get_flightctrl_settings(int index);
24
        void get_flightctrl_settings(int index);
25
        void set_flightctrl_settings(char * tx_data);
25
        void set_flightctrl_settings(char * tx_data);
Line 51... Line 51...
51
        void lcd_up();
51
        void lcd_up();
52
        void lcd_down();
52
        void lcd_down();
53
        void get_version();
53
        void get_version();
54
        void get_ppm_channels();
54
        void get_ppm_channels();
Line 55... Line 55...
55
 
55
 
56
        void receive_data(sRxData rx);
56
        void receive_data(int hardwareID, int cmd, char * data);
Line 57... Line 57...
57
};
57
};
58
 
58