From 7adc80c5134a3f1416ef68afe76c06391c16f5b1 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 26 Dec 2011 15:14:26 -0800 Subject: [PATCH] removed newlines to clean up code --- libraries/APM_RC/APM_RC.h | 55 ++++++++++++++++++++++++--------------- 1 file changed, 34 insertions(+), 21 deletions(-) diff --git a/libraries/APM_RC/APM_RC.h b/libraries/APM_RC/APM_RC.h index 65e5b278d5..e9a00e2c85 100644 --- a/libraries/APM_RC/APM_RC.h +++ b/libraries/APM_RC/APM_RC.h @@ -1,18 +1,22 @@ #ifndef __APM_RC_H__ #define __APM_RC_H__ - + + #include - -// Radio channels -// Note channels are from 0! -#define CH_1 0 -#define CH_2 1 -#define CH_3 2 -#define CH_4 3 -#define CH_5 4 -#define CH_6 5 -#define CH_7 6 -#define CH_8 7 + + +// Radio channels + +// Note channels are from 0! + +#define CH_1 0 +#define CH_2 1 +#define CH_3 2 +#define CH_4 3 +#define CH_5 4 +#define CH_6 5 +#define CH_7 6 +#define CH_8 7 #define CH_9 8 #define CH_10 9 #define CH_11 10 @@ -30,15 +34,20 @@ #define MSK_CH_11 (1 << CH_11) - + + #define NUM_CHANNELS 8 - + + class Arduino_Mega_ISR_Registry; -class APM_RC_Class -{ - public: +class APM_RC_Class + +{ + + public: + virtual void Init( Arduino_Mega_ISR_Registry * isr_reg ) = 0; virtual void OutputCh(uint8_t ch, uint16_t pwm) = 0; virtual uint16_t InputCh(uint8_t ch) = 0; @@ -46,9 +55,13 @@ class APM_RC_Class virtual void clearOverride(void) = 0; virtual void Force_Out() = 0; virtual void SetFastOutputChannels( uint32_t channelmask ) = 0; -}; - +}; + + + #include "APM_RC_APM1.h" #include "APM_RC_APM2.h" - -#endif + + +#endif +