You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
411 B
20 lines
411 B
#pragma once |
|
|
|
#include "RCInput.h" |
|
|
|
class Linux::RCInput_Navio2 : public Linux::RCInput |
|
{ |
|
public: |
|
void init() override; |
|
void _timer_tick(void) override; |
|
RCInput_Navio2(); |
|
~RCInput_Navio2(); |
|
|
|
private: |
|
int open_channel(int ch); |
|
|
|
uint64_t _last_timestamp = 0l; |
|
static const size_t CHANNEL_COUNT = 8; |
|
int channels[CHANNEL_COUNT]; |
|
uint16_t periods[ARRAY_SIZE(channels)] = {0}; |
|
};
|
|
|