altos: Change 'flight-number' to 'current-flight'
authorKeith Packard <keithp@keithp.com>
Fri, 7 Dec 2012 01:06:17 +0000 (17:06 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 7 Dec 2012 01:06:17 +0000 (17:06 -0800)
Avoids ambiguity with stored flight info, which starts lines with 'flight'.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_cmd.c
src/core/ao_config.c

index 9e78a225e118e16d810b5706c2a57fe10121b670..3d086a57e106d8f0110e0da6ad8a309fe985552d 100644 (file)
@@ -269,7 +269,7 @@ version(void)
               "product          %s\n"
               "serial-number    %u\n"
 #if HAS_FLIGHT
-              "flight-number    %u\n"
+              "current-flight   %u\n"
 #endif
 #if HAS_LOG
               "log-format       %u\n"
index e85ddcb4d74d9a53dbb0b2ed9630d4be0f667cfe..797fe7ec6aedfec9db3eae4fbda5b13b9ad2c936 100644 (file)
@@ -529,15 +529,15 @@ __code struct ao_config_var ao_config_vars[] = {
          ao_config_callsign_set,       ao_config_callsign_show },
        { "e <0 disable, 1 enable>\0Enable telemetry and RDF",
          ao_config_radio_enable_set, ao_config_radio_enable_show },
+       { "f <cal>\0Radio calib (cal = rf/(xtal/2^16))",
+         ao_config_radio_cal_set,      ao_config_radio_cal_show },
 #endif /* HAS_RADIO */
 #if HAS_ACCEL
        { "a <+g> <-g>\0Accel calib (0 for auto)",
          ao_config_accel_calibrate_set,ao_config_accel_calibrate_show },
+       { "o <0 antenna up, 1 antenna down>\0Set pad orientation",
+         ao_config_pad_orientation_set,ao_config_pad_orientation_show },
 #endif /* HAS_ACCEL */
-#if HAS_RADIO
-       { "f <cal>\0Radio calib (cal = rf/(xtal/2^16))",
-         ao_config_radio_cal_set,      ao_config_radio_cal_show },
-#endif /* HAS_RADIO */
 #if HAS_LOG
        { "l <size>\0Flight log size (kB)",
          ao_config_log_set,            ao_config_log_show },
@@ -546,10 +546,6 @@ __code struct ao_config_var ao_config_vars[] = {
        { "i <0 dual, 1 apogee, 2 main>\0Set igniter mode",
          ao_config_ignite_mode_set,    ao_config_ignite_mode_show },
 #endif
-#if HAS_ACCEL
-       { "o <0 antenna up, 1 antenna down>\0Set pad orientation",
-         ao_config_pad_orientation_set,ao_config_pad_orientation_show },
-#endif
 #if HAS_AES
        { "k <32 hex digits>\0Set AES encryption key",
          ao_config_key_set, ao_config_key_show },