From 56815e768d14bdcd4e1572d6f7e7c3ac97c2897b Mon Sep 17 00:00:00 2001 From: Jairo Date: Thu, 22 Dec 2011 18:27:55 -0600 Subject: [PATCH] code cleanup --- main.cpp | 7 ------- main.h | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 944862c..f2746c2 100644 --- a/main.cpp +++ b/main.cpp @@ -11,13 +11,6 @@ // ASCII escape character #define ESC ((uint8)27) - -// Servo constants -#define SERVO_MIN 3430 -#define SERVO_MAX 6800 -#define PPM_CNTS_TO_DEG 0.09 -#define SERVO_ANGLE_TO_DUTY 37.44444 - // Globals HardwareTimer timer4(4); diff --git a/main.h b/main.h index 3d7a8cc..9c5a141 100644 --- a/main.h +++ b/main.h @@ -17,3 +17,5 @@ #define ROTOR2_PIN 15 /* Timer 4, Ch 3 */ #define ROTOR3_PIN 32 + +#define PPM_PIN 27