2016-02-17 21:25:26 -04:00
|
|
|
#pragma once
|
2015-08-17 23:29:11 -03:00
|
|
|
|
|
|
|
#include "AP_HAL_Linux.h"
|
|
|
|
#include "RCInput.h"
|
2016-04-26 15:33:22 -03:00
|
|
|
#include <AP_HAL/SPIDevice.h>
|
2015-08-17 23:29:11 -03:00
|
|
|
|
2016-07-29 16:14:02 -03:00
|
|
|
|
|
|
|
namespace Linux {
|
|
|
|
|
|
|
|
class RCInput_Raspilot : public RCInput
|
2015-08-17 23:29:11 -03:00
|
|
|
{
|
|
|
|
public:
|
2015-12-02 11:14:20 -04:00
|
|
|
void init();
|
2016-07-29 16:14:02 -03:00
|
|
|
|
2015-08-17 23:29:11 -03:00
|
|
|
private:
|
2016-04-26 15:33:22 -03:00
|
|
|
AP_HAL::OwnPtr<AP_HAL::SPIDevice> _dev;
|
2016-07-29 16:14:02 -03:00
|
|
|
|
2017-01-13 15:26:14 -04:00
|
|
|
void _poll_data(void);
|
2015-08-17 23:29:11 -03:00
|
|
|
};
|
2016-07-29 16:14:02 -03:00
|
|
|
|
|
|
|
}
|