2015-08-17 23:29:11 -03:00
|
|
|
|
|
|
|
#ifndef __AP_HAL_LINUX_RCINPUT_RASPILOT_H__
|
|
|
|
#define __AP_HAL_LINUX_RCINPUT_RASPILOT_H__
|
|
|
|
|
|
|
|
#include "AP_HAL_Linux.h"
|
|
|
|
#include "RCInput.h"
|
|
|
|
|
2015-10-20 18:13:25 -03:00
|
|
|
class Linux::RCInput_Raspilot : public Linux::RCInput
|
2015-08-17 23:29:11 -03:00
|
|
|
{
|
|
|
|
public:
|
2015-12-02 11:14:20 -04:00
|
|
|
void init();
|
2015-08-17 23:29:11 -03:00
|
|
|
|
|
|
|
private:
|
|
|
|
uint32_t _last_timer;
|
|
|
|
|
|
|
|
AP_HAL::SPIDeviceDriver *_spi;
|
|
|
|
AP_HAL::Semaphore *_spi_sem;
|
|
|
|
|
|
|
|
void _poll_data(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __AP_HAL_LINUX_RCINPUT_RASPILOT_H__
|