You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
475 B
26 lines
475 B
#ifndef APM_RC_h |
|
#define APM_RC_h |
|
|
|
#define NUM_CHANNELS 8 |
|
#define MIN_PULSEWIDTH 900 |
|
#define MAX_PULSEWIDTH 2100 |
|
|
|
#include <inttypes.h> |
|
|
|
class APM_RC_Class |
|
{ |
|
private: |
|
public: |
|
APM_RC_Class(); |
|
void Init(); |
|
void OutputCh(unsigned char ch, uint16_t pwm); |
|
uint16_t 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
|
|
|