mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
69833ebcd5
git-svn-id: https://arducopter.googlecode.com/svn/trunk@283 f9c3cf11-9bcb-44bc-f272-b75c42450872
24 lines
438 B
C++
24 lines
438 B
C++
#ifndef APM_RC_h
|
|
#define APM_RC_h
|
|
|
|
#define NUM_CHANNELS 8
|
|
#define MIN_PULSEWIDTH 900
|
|
#define MAX_PULSEWIDTH 2100
|
|
|
|
class APM_RC_Class
|
|
{
|
|
private:
|
|
public:
|
|
APM_RC_Class();
|
|
void Init();
|
|
void OutputCh(unsigned char ch, int pwm);
|
|
int InputCh(unsigned char ch);
|
|
unsigned char GetState();
|
|
void Force_Out0_Out1(void);
|
|
void Force_Out2_Out3(void);
|
|
void Force_Out6_Out7(void);
|
|
};
|
|
|
|
extern APM_RC_Class APM_RC;
|
|
|
|
#endif |