Generation 3 of the Harp project

Dependencies:   Servo TMP36 GZ buffered-serial1 chan_fatfs_sd nmea_parser watchdog mbed-rtos mbed

Fork of HARP2 by Tyler Weaver

Revision:
32:4f811b397720
Parent:
31:b9ac7d61b15b
Child:
33:61f0be6af3c0
--- a/config.h	Thu Jan 17 18:09:16 2013 +0000
+++ b/config.h	Mon Jan 21 06:14:41 2013 +0000
@@ -3,13 +3,14 @@
 #ifndef HARP_CONFIG_H
 #define HARP_CONFIG_H
 
-#define WAIT_FOR_LOCK   0 // set to 1 to not open log file until gps lock
-#define UNLOCK_ON_FALL  0 // set to 1 to not signal parachute untill falling
-#define RELEASE_AT_ALT  0 // set to 1 for release at target altitude (must also set UNLOCK_ON_FALL to 1)
-#define ALARM           0 // set to 1 to key alarm on descent, 0 = no alarm 
+#define WAIT_FOR_LOCK   1 // set to 1 to not open log file until gps lock
+#define UNLOCK_ON_FALL  1 // set to 1 to not signal parachute untill falling
+#define RELEASE_AT_ALT  1 // set to 1 for release at target altitude (must also set UNLOCK_ON_FALL to 1)
+#define ALARM           1 // set to 1 to key alarm on descent, 0 = no alarm 
+#define WATCHDOG        1 // set to 1 to enable watchdog
 
-const float target_lat = 39.910325;    // for setting the target location!
-const float target_lon = -105.004685;
+const float target_lat = 39.684303;    // for setting the target location!
+const float target_lon = -104.470882;
 
 const float course_fudge = 15.0; // if -course_fudge < course > course_fudge then don't turn
 const float neg_course_fudge = -15.0;
@@ -19,8 +20,8 @@
 const float BAT_GPS_MUL = 16.14; // values for calculating battery voltage
 const float BAT_MBED_MUL = 10.35;
 
-const float SERVO_L_MAX = 0.0007; // servo calibration
-const float SERVO_L_MIN = -0.0013; // servo calibration
+const float SERVO_L_MAX = 0.0008; // servo calibration
+const float SERVO_L_MIN = -0.0012; // servo calibration
 const float SERVO_R_MAX = 0.0006; // servo calibration
 const float SERVO_R_MIN = -0.0015; // servo calibration
 
@@ -28,10 +29,10 @@
 const float SERVO_RELEASE_MAX = 0.0004;
 
 const int RELEASE_ALT = 4572; // 15k ft in meeters
-const int ALARM_ALT = 2133; // altitude to key alarm on descent
+const int ALARM_ALT = 1981; // altitude to key alarm on descent (6500ft)
 
 const int test_length = 20;
 const float test_right[test_length] = {0.2, 0.0, 0.0, 0.0, 0.4, 0.0, 0.0, 0.0, 0.6, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0};
-const float test_left[test_length] = {0.0, 0.0, 0.2, 0.0, 0.0, 0.0, 0.4, 0.0, 0.0, 0.0, 0.6, 0.0, 0.0, 0.0, 0.8, 0.0, 0.0, 0.0, 1.0, 0.0};
+const float test_left[test_length] = {1.0, 1.0, 0.8, 1.0, 1.0, 1.0, 0.6, 1.0, 1.0, 1.0, 0.4, 1.0, 1.0, 1.0, 0.2, 1.0, 1.0, 1.0, 0.0, 1.0};
 
 #endif
\ No newline at end of file