mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 07:28:29 -04:00
25 lines
469 B
C
25 lines
469 B
C
|
|
||
|
#ifndef __AP_HAL_AVR_PPM_INPUT_H__
|
||
|
#define __AP_HAL_AVR_PPM_INPUT_H__
|
||
|
|
||
|
#include <AP_HAL.h>
|
||
|
|
||
|
class AP_HAL::APM1PPMInput : public AP_HAL::PPMInput {
|
||
|
public:
|
||
|
APM1PPMInput() : _init(0) {}
|
||
|
void init(int machtnicht) { _init = 1; }
|
||
|
private:
|
||
|
int _init;
|
||
|
};
|
||
|
|
||
|
class AP_HAL::APM2PPMInput : public AP_HAL::PPMInput {
|
||
|
public:
|
||
|
APM2PPMInput() : _init(0) {}
|
||
|
void init(int machtnicht) { _init = 2; }
|
||
|
private:
|
||
|
int _init;
|
||
|
};
|
||
|
|
||
|
#endif // __AP_HAL_AVR_PPM_INPUT_H__
|
||
|
|