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