mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
f36e8d9c05
This centralized namespace header encourages centralizing things on umbrella headers that are a pain to maintain. Force each part of AP_HAL_Linux to include what is used. While at it, do some whitespace cleanups and minor changes to adhere to coding style.
25 lines
421 B
C++
25 lines
421 B
C++
#pragma once
|
|
|
|
#include "RCInput.h"
|
|
|
|
|
|
namespace Linux {
|
|
|
|
class RCInput_Navio2 : public 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 = 16;
|
|
int channels[CHANNEL_COUNT];
|
|
uint16_t periods[ARRAY_SIZE(channels)] = {0};
|
|
};
|
|
|
|
}
|