From b9f3fb7d644dbf12a78304b70a9770fd09bb52b4 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Thu, 30 Dec 2010 06:43:35 +0000 Subject: [PATCH] cosmetic git-svn-id: https://arducopter.googlecode.com/svn/trunk@1370 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- .../APM_RC/examples/APM_radio/APM_radio.pde | 60 +++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/libraries/APM_RC/examples/APM_radio/APM_radio.pde b/libraries/APM_RC/examples/APM_radio/APM_radio.pde index eebc92934d..67077162a9 100644 --- a/libraries/APM_RC/examples/APM_radio/APM_radio.pde +++ b/libraries/APM_RC/examples/APM_radio/APM_radio.pde @@ -1,31 +1,31 @@ -/* - 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 // ArduPilot Mega RC Library - -void setup() -{ - APM_RC.Init(); // APM Radio initialization - Serial.begin(57600); - Serial.println("ArduPilot Mega RC library test"); - delay(1000); -} -void loop() -{ - if (APM_RC.GetState()==1) // New radio frame? (we could use also if((millis()- timer) > 20) - { - 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(); - } +/* + 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 // ArduPilot Mega RC Library + +void setup() +{ + APM_RC.Init(); // APM Radio initialization + Serial.begin(57600); + 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(); + } } \ No newline at end of file