diff options
| author | Bdale Garbee <bdale@gag.com> | 2017-12-11 21:37:48 -0700 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2017-12-11 21:37:48 -0700 | 
| commit | ea0aa97fb93e669868a6f2c49c5d4b46e7615b1f (patch) | |
| tree | f16b9a9ccd8b4a7bcde7d5cc64e6f0a52c4f3436 /src/test/ao_flight_test.c | |
| parent | 216ea6388a75c46891dc4687a2eb0c97dc63b136 (diff) | |
| parent | 9adf8b23aac8256f230b10adcab9dd323266caaa (diff) | |
Merge branch 'master' into branch-1.8
Diffstat (limited to 'src/test/ao_flight_test.c')
| -rw-r--r-- | src/test/ao_flight_test.c | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/ao_flight_test.c b/src/test/ao_flight_test.c index 298848d6..2d862f82 100644 --- a/src/test/ao_flight_test.c +++ b/src/test/ao_flight_test.c @@ -25,6 +25,7 @@  #include <string.h>  #include <getopt.h>  #include <math.h> +#define log ao_log_data  #define GRAVITY 9.80665 @@ -370,7 +371,7 @@ extern int16_t ao_accel_2g;  typedef int16_t	accel_t;  uint16_t	ao_serial_number; -uint16_t	ao_flight_number; +int16_t		ao_flight_number;  extern uint16_t	ao_sample_tick; @@ -998,7 +999,7 @@ main (int argc, char **argv)  #else  	emulator_app="baro";  #endif -	while ((c = getopt_long(argc, argv, "sdi:", options, NULL)) != -1) { +	while ((c = getopt_long(argc, argv, "sdpi:", options, NULL)) != -1) {  		switch (c) {  		case 's':  			summary = 1; @@ -1006,6 +1007,11 @@ main (int argc, char **argv)  		case 'd':  			ao_flight_debug = 1;  			break; +		case 'p': +#if PYRO_DBG +			pyro_dbg = 1; +#endif +			break;  		case 'i':  			info = optarg;  			break;  | 
