summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-10-25 11:20:44 -0700
committerKeith Packard <keithp@keithp.com>2014-10-25 11:20:44 -0700
commit3f7263f57b1b697d92ed6c3d62956e5bdfc11f24 (patch)
tree0defa222b2bdcb61e789e82e6dfb50f63690bed5 /src
parentae4be19f8ab0899a879a10aec28dc381f44dd2c7 (diff)
altos: Remove old AO_SEND_ALL_BARO bits
This was used for testing the original TeleMini which couldn't log data at full speed. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/kernel/ao.h6
-rw-r--r--src/kernel/ao_telemetry.c30
2 files changed, 0 insertions, 36 deletions
diff --git a/src/kernel/ao.h b/src/kernel/ao.h
index ad5bbf8e..244421f3 100644
--- a/src/kernel/ao.h
+++ b/src/kernel/ao.h
@@ -518,15 +518,9 @@ struct ao_telemetry_raw_recv {
/* Set delay between telemetry reports (0 to disable) */
-#ifdef AO_SEND_ALL_BARO
-#define AO_TELEMETRY_INTERVAL_PAD AO_MS_TO_TICKS(100)
-#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(100)
-#define AO_TELEMETRY_INTERVAL_RECOVER AO_MS_TO_TICKS(100)
-#else
#define AO_TELEMETRY_INTERVAL_PAD AO_MS_TO_TICKS(1000)
#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(100)
#define AO_TELEMETRY_INTERVAL_RECOVER AO_MS_TO_TICKS(1000)
-#endif
void
ao_telemetry_reset_interval(void);
diff --git a/src/kernel/ao_telemetry.c b/src/kernel/ao_telemetry.c
index 27306a34..5b56d025 100644
--- a/src/kernel/ao_telemetry.c
+++ b/src/kernel/ao_telemetry.c
@@ -269,30 +269,6 @@ ao_send_mini(void)
#endif /* AO_SEND_MINI */
-#ifdef AO_SEND_ALL_BARO
-static uint8_t ao_baro_sample;
-
-static void
-ao_send_baro(void)
-{
- uint8_t sample = ao_sample_data;
- uint8_t samples = (sample - ao_baro_sample) & (AO_DATA_RING - 1);
-
- if (samples > 12) {
- ao_baro_sample = (ao_baro_sample + (samples - 12)) & (AO_DATA_RING - 1);
- samples = 12;
- }
- telemetry.generic.tick = ao_data_ring[sample].tick;
- telemetry.generic.type = AO_TELEMETRY_BARO;
- telemetry.baro.samples = samples;
- for (sample = 0; sample < samples; sample++) {
- telemetry.baro.baro[sample] = ao_data_ring[ao_baro_sample].adc.pres;
- ao_baro_sample = ao_data_ring_next(ao_baro_sample);
- }
- ao_radio_send(&telemetry, sizeof (telemetry));
-}
-#endif
-
static __pdata int8_t ao_telemetry_config_max;
static __pdata int8_t ao_telemetry_config_cur;
@@ -422,10 +398,6 @@ ao_telemetry(void)
if (!(ao_config.radio_enable & AO_RADIO_DISABLE_TELEMETRY))
#endif
{
-#ifdef AO_SEND_ALL_BARO
- ao_send_baro();
-#endif
-
#if HAS_FLIGHT
# ifdef AO_SEND_MEGA
ao_send_mega_sensor();
@@ -453,7 +425,6 @@ ao_telemetry(void)
ao_send_satellite();
#endif
}
-#ifndef AO_SEND_ALL_BARO
#if HAS_RDF
if (ao_rdf &&
#if HAS_APRS
@@ -481,7 +452,6 @@ ao_telemetry(void)
ao_aprs_send();
}
#endif /* HAS_APRS */
-#endif /* !AO_SEND_ALL_BARO */
time += ao_telemetry_interval;
delay = time - ao_time();
if (delay > 0) {