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:
17
        Communication * com;
16
        Communication * com;
18
 
17
 
19
        sRxData rxData;
-
 
20
    public:
18
    public:
21
        KopterData * data;
19
        KopterData * data;
-
 
20
 
22
        Handler(Communication * com, KopterData * data);
21
        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);
26
        void motor_test(sMotorData motor);
26
        void motor_test(sMotorData motor);
27
        void reset_motor();
27
        void reset_motor();
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();
55
 
55
 
56
        void receive_data(sRxData rx);
56
        void receive_data(int hardwareID, int cmd, char * data);
57
};
57
};
58
 
58
 
59
#endif
59
#endif
60
60