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

Committer:
tylerjw
Date:
Thu Jan 17 18:09:16 2013 +0000
Revision:
31:b9ac7d61b15b
Parent:
30:b81274979e73
Child:
32:4f811b397720
Tested release servo, updated release servo logic.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tylerjw 24:7477105103e5 1 // file containing configuration values
tylerjw 24:7477105103e5 2
tylerjw 24:7477105103e5 3 #ifndef HARP_CONFIG_H
tylerjw 24:7477105103e5 4 #define HARP_CONFIG_H
tylerjw 24:7477105103e5 5
tylerjw 26:85cdb1031eb1 6 #define WAIT_FOR_LOCK 0 // set to 1 to not open log file until gps lock
tylerjw 22:becb67846755 7 #define UNLOCK_ON_FALL 0 // set to 1 to not signal parachute untill falling
tylerjw 29:8cdb56a0fe57 8 #define RELEASE_AT_ALT 0 // set to 1 for release at target altitude (must also set UNLOCK_ON_FALL to 1)
tylerjw 29:8cdb56a0fe57 9 #define ALARM 0 // set to 1 to key alarm on descent, 0 = no alarm
tylerjw 22:becb67846755 10
tylerjw 30:b81274979e73 11 const float target_lat = 39.910325; // for setting the target location!
tylerjw 30:b81274979e73 12 const float target_lon = -105.004685;
tylerjw 22:becb67846755 13
tylerjw 22:becb67846755 14 const float course_fudge = 15.0; // if -course_fudge < course > course_fudge then don't turn
tylerjw 22:becb67846755 15 const float neg_course_fudge = -15.0;
tylerjw 22:becb67846755 16
tylerjw 22:becb67846755 17 const float distance_fudge_km = 0.1; // stop turning if within distance_fudge km
tylerjw 22:becb67846755 18
tylerjw 27:24fd8e32511c 19 const float BAT_GPS_MUL = 16.14; // values for calculating battery voltage
tylerjw 27:24fd8e32511c 20 const float BAT_MBED_MUL = 10.35;
tylerjw 24:7477105103e5 21
tylerjw 29:8cdb56a0fe57 22 const float SERVO_L_MAX = 0.0007; // servo calibration
tylerjw 29:8cdb56a0fe57 23 const float SERVO_L_MIN = -0.0013; // servo calibration
tylerjw 29:8cdb56a0fe57 24 const float SERVO_R_MAX = 0.0006; // servo calibration
tylerjw 29:8cdb56a0fe57 25 const float SERVO_R_MIN = -0.0015; // servo calibration
tylerjw 29:8cdb56a0fe57 26
tylerjw 31:b9ac7d61b15b 27 const float SERVO_RELEASE_MIN = -0.0011;
tylerjw 31:b9ac7d61b15b 28 const float SERVO_RELEASE_MAX = 0.0004;
tylerjw 31:b9ac7d61b15b 29
tylerjw 29:8cdb56a0fe57 30 const int RELEASE_ALT = 4572; // 15k ft in meeters
tylerjw 29:8cdb56a0fe57 31 const int ALARM_ALT = 2133; // altitude to key alarm on descent
tylerjw 29:8cdb56a0fe57 32
tylerjw 30:b81274979e73 33 const int test_length = 20;
tylerjw 30:b81274979e73 34 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};
tylerjw 30:b81274979e73 35 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};
tylerjw 30:b81274979e73 36
tylerjw 24:7477105103e5 37 #endif