Rev 391 | Rev 393 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 391 | Rev 392 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include<Handler.h> |
1 | #include<Handler.h> |
Line 2... | Line 2... | ||
2 | 2 | ||
- | 3 | /** |
|
- | 4 | * Constructor that gets a communication instance |
|
- | 5 | */ |
|
- | 6 | Handler::Handler(Communication * com) { |
|
- | 7 | this->com = com; |
|
- | 8 | } |
|
- | 9 | ||
3 | /** |
10 | /** |
4 | * read mixer values from FlightCtrl |
11 | * read mixer values from FlightCtrl |
5 | */ |
12 | */ |
6 | void Handler::read_mixer() { |
13 | void Handler::read_mixer() { |
7 | TX_Data[0] = 0; |
14 | TX_Data[0] = 0; |
8 | o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true); |
15 | com->send_cmd('n', ADDRESS_FC, TX_Data, 1, true); |
9 | } |
16 | } |