RCInput_Navio2.h 421 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "RCInput.h"
  3. namespace Linux {
  4. class RCInput_Navio2 : public RCInput {
  5. public:
  6. void init() override;
  7. void _timer_tick(void) override;
  8. RCInput_Navio2();
  9. ~RCInput_Navio2();
  10. private:
  11. int open_channel(int ch);
  12. uint64_t _last_timestamp = 0l;
  13. static const size_t CHANNEL_COUNT = 16;
  14. int channels[CHANNEL_COUNT];
  15. uint16_t periods[ARRAY_SIZE(channels)] = {0};
  16. };
  17. }