APM:Libraries
RCInput_Navio2.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RCInput.h"
4 
5 
6 namespace Linux {
7 
8 class RCInput_Navio2 : public RCInput {
9 public:
10  void init() override;
11  void _timer_tick(void) override;
14 
15 private:
16  int open_channel(int ch);
17 
18  uint64_t _last_timestamp = 0l;
19  static const size_t CHANNEL_COUNT = 16;
21  uint16_t periods[ARRAY_SIZE(channels)] = {0};
22 };
23 
24 }
int channels[CHANNEL_COUNT]
void _timer_tick(void) override
#define ARRAY_SIZE(_arr)
Definition: AP_Common.h:80
uint16_t periods[ARRAY_SIZE(channels)]
static const size_t CHANNEL_COUNT
void init() override