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 10 20:37:07 2013 +0000
Revision:
29:8cdb56a0fe57
Parent:
27:24fd8e32511c
Child:
30:b81274979e73
added alarm

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 22:becb67846755 11 const float target_lat = 39.921664; // for setting the target location!
tylerjw 22:becb67846755 12 const float target_lon = -105.008167;
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 29:8cdb56a0fe57 27 const int RELEASE_ALT = 4572; // 15k ft in meeters
tylerjw 29:8cdb56a0fe57 28 const int ALARM_ALT = 2133; // altitude to key alarm on descent
tylerjw 29:8cdb56a0fe57 29
tylerjw 24:7477105103e5 30 #endif