mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
742d0ceef2
git-svn-id: https://arducopter.googlecode.com/svn/trunk@277 f9c3cf11-9bcb-44bc-f272-b75c42450872
23 lines
269 B
C++
23 lines
269 B
C++
#ifndef AP_RC_h
|
|
#define AP_RC_h
|
|
|
|
#include <inttypes.h>
|
|
#include "WProgram.h"
|
|
|
|
class AP_RC
|
|
{
|
|
public:
|
|
AP_RC();
|
|
void set_ch_pwm(uint8_t ch, uint16_t pwm);
|
|
void init(int trims[]);
|
|
void read_pwm();
|
|
|
|
uint16_t input[4];
|
|
|
|
private:
|
|
uint16_t _timer_out;
|
|
};
|
|
|
|
#endif
|
|
|