From 496553898e24cd82b9c1c262f0b57ab4e7bf76cd Mon Sep 17 00:00:00 2001 From: uncrustify Date: Thu, 16 Aug 2012 23:20:41 -0700 Subject: [PATCH] uncrustify libraries/APM_RC/examples/APM1_radio/APM1_radio.pde --- .../APM_RC/examples/APM1_radio/APM1_radio.pde | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/libraries/APM_RC/examples/APM1_radio/APM1_radio.pde b/libraries/APM_RC/examples/APM1_radio/APM1_radio.pde index 36dbb32a20..29b147665e 100644 --- a/libraries/APM_RC/examples/APM1_radio/APM1_radio.pde +++ b/libraries/APM_RC/examples/APM1_radio/APM1_radio.pde @@ -1,10 +1,10 @@ /* - Example of APM_RC library. - Code by Jordi MuÒoz and Jose Julio. DIYDrones.com - - Print Input values and send Output to the servos - (Works with last PPM_encoder firmware) -*/ + * Example of APM_RC library. + * Code by Jordi MuÒoz and Jose Julio. DIYDrones.com + * + * Print Input values and send Output to the servos + * (Works with last PPM_encoder firmware) + */ #include #include // ArduPilot Mega RC Library @@ -15,31 +15,31 @@ APM_RC_APM1 APM_RC; void setup() { isr_registry.init(); - APM_RC.Init(&isr_registry); // APM Radio initialization - APM_RC.enable_out(CH_1); - APM_RC.enable_out(CH_2); - APM_RC.enable_out(CH_3); - APM_RC.enable_out(CH_4); - APM_RC.enable_out(CH_5); - APM_RC.enable_out(CH_6); - APM_RC.enable_out(CH_7); - APM_RC.enable_out(CH_8); + APM_RC.Init(&isr_registry); // APM Radio initialization + APM_RC.enable_out(CH_1); + APM_RC.enable_out(CH_2); + APM_RC.enable_out(CH_3); + APM_RC.enable_out(CH_4); + APM_RC.enable_out(CH_5); + APM_RC.enable_out(CH_6); + APM_RC.enable_out(CH_7); + APM_RC.enable_out(CH_8); - Serial.begin(115200); - Serial.println("ArduPilot Mega RC library test"); - delay(1000); + Serial.begin(115200); + Serial.println("ArduPilot Mega RC library test"); + delay(1000); } void loop() { - // New radio frame? (we could use also if((millis()- timer) > 20) - if (APM_RC.GetState() == 1){ - Serial.print("CH:"); - for(int i = 0; i < 8; i++){ - Serial.print(APM_RC.InputCh(i)); // Print channel values - Serial.print(","); - APM_RC.OutputCh(i, APM_RC.InputCh(i)); // Copy input to Servos - } - Serial.println(); - } + // New radio frame? (we could use also if((millis()- timer) > 20) + if (APM_RC.GetState() == 1) { + Serial.print("CH:"); + for(int i = 0; i < 8; i++) { + Serial.print(APM_RC.InputCh(i)); // Print channel values + Serial.print(","); + APM_RC.OutputCh(i, APM_RC.InputCh(i)); // Copy input to Servos + } + Serial.println(); + } }