Generation 2 of the Harp project
Dependencies: Servo TMP36 GZ chan_fatfs_sd buffered-serial1 nmea_parser watchdog mbed-rtos mbed
config.h@33:61f0be6af3c0, 2013-01-24 (annotated)
- Committer:
- tylerjw
- Date:
- Thu Jan 24 06:50:46 2013 +0000
- Revision:
- 33:61f0be6af3c0
- Parent:
- 32:4f811b397720
last revision;
Who changed what in which revision?
User | Revision | Line number | New 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 | 33:61f0be6af3c0 | 6 | #define WAIT_FOR_LOCK 0 // set to 1 to not open log file until gps lock |
tylerjw | 32:4f811b397720 | 7 | #define UNLOCK_ON_FALL 1 // set to 1 to not signal parachute untill falling |
tylerjw | 32:4f811b397720 | 8 | #define RELEASE_AT_ALT 1 // set to 1 for release at target altitude (must also set UNLOCK_ON_FALL to 1) |
tylerjw | 32:4f811b397720 | 9 | #define ALARM 1 // set to 1 to key alarm on descent, 0 = no alarm |
tylerjw | 33:61f0be6af3c0 | 10 | #define WATCHDOG 0 // set to 1 to enable watchdog |
tylerjw | 22:becb67846755 | 11 | |
tylerjw | 32:4f811b397720 | 12 | const float target_lat = 39.684303; // for setting the target location! |
tylerjw | 32:4f811b397720 | 13 | const float target_lon = -104.470882; |
tylerjw | 22:becb67846755 | 14 | |
tylerjw | 22:becb67846755 | 15 | const float course_fudge = 15.0; // if -course_fudge < course > course_fudge then don't turn |
tylerjw | 22:becb67846755 | 16 | const float neg_course_fudge = -15.0; |
tylerjw | 22:becb67846755 | 17 | |
tylerjw | 22:becb67846755 | 18 | const float distance_fudge_km = 0.1; // stop turning if within distance_fudge km |
tylerjw | 22:becb67846755 | 19 | |
tylerjw | 27:24fd8e32511c | 20 | const float BAT_GPS_MUL = 16.14; // values for calculating battery voltage |
tylerjw | 27:24fd8e32511c | 21 | const float BAT_MBED_MUL = 10.35; |
tylerjw | 24:7477105103e5 | 22 | |
tylerjw | 32:4f811b397720 | 23 | const float SERVO_L_MAX = 0.0008; // servo calibration |
tylerjw | 32:4f811b397720 | 24 | const float SERVO_L_MIN = -0.0012; // servo calibration |
tylerjw | 29:8cdb56a0fe57 | 25 | const float SERVO_R_MAX = 0.0006; // servo calibration |
tylerjw | 29:8cdb56a0fe57 | 26 | const float SERVO_R_MIN = -0.0015; // servo calibration |
tylerjw | 29:8cdb56a0fe57 | 27 | |
tylerjw | 31:b9ac7d61b15b | 28 | const float SERVO_RELEASE_MIN = -0.0011; |
tylerjw | 31:b9ac7d61b15b | 29 | const float SERVO_RELEASE_MAX = 0.0004; |
tylerjw | 31:b9ac7d61b15b | 30 | |
tylerjw | 29:8cdb56a0fe57 | 31 | const int RELEASE_ALT = 4572; // 15k ft in meeters |
tylerjw | 32:4f811b397720 | 32 | const int ALARM_ALT = 1981; // altitude to key alarm on descent (6500ft) |
tylerjw | 29:8cdb56a0fe57 | 33 | |
tylerjw | 30:b81274979e73 | 34 | const int test_length = 20; |
tylerjw | 30:b81274979e73 | 35 | 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 | 32:4f811b397720 | 36 | 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}; |
tylerjw | 30:b81274979e73 | 37 | |
tylerjw | 24:7477105103e5 | 38 | #endif |