diff options
| author | Keith Packard <keithp@keithp.com> | 2009-05-28 23:17:33 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-05-28 23:17:33 -0700 | 
| commit | 3a3bfd471a868d546d83cdc431b53c8f5208edb9 (patch) | |
| tree | 973f40949c1deb0eb152ec299d7b06be7ee806cd /ao_telemetry.c | |
| parent | 4d83eef0fe1d24a845ab29a535dfc56e13e7ee20 (diff) | |
Eliminate RDF tone generation.
Now that we have a viable telemetry-signal based RDF device via TeleDongle,
there's no reason to continue to waste power and bandwidth with a NFM tone.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao_telemetry.c')
| -rw-r--r-- | ao_telemetry.c | 20 | 
1 files changed, 0 insertions, 20 deletions
| diff --git a/ao_telemetry.c b/ao_telemetry.c index 5cf9ca61..463bcd91 100644 --- a/ao_telemetry.c +++ b/ao_telemetry.c @@ -18,10 +18,6 @@  #include "ao.h"  __xdata uint16_t ao_telemetry_interval = 0; -__xdata uint8_t ao_rdf = 0; -__xdata uint16_t ao_rdf_time; - -#define AO_RDF_INTERVAL	AO_SEC_TO_TICKS(3)  void  ao_telemetry(void) @@ -31,7 +27,6 @@ ao_telemetry(void)  	ao_config_get();  	memcpy(telemetry.callsign, ao_config.callsign, AO_MAX_CALLSIGN);  	telemetry.addr = ao_serial_number; -	ao_rdf_time = ao_time();  	for (;;) {  		while (ao_telemetry_interval == 0)  			ao_sleep(&ao_telemetry_interval); @@ -47,13 +42,6 @@ ao_telemetry(void)  		ao_mutex_put(&ao_gps_mutex);  		ao_radio_send(&telemetry);  		ao_delay(ao_telemetry_interval); -		if (ao_rdf && -		    (int16_t) (ao_time() - ao_rdf_time) >= 0) -		{ -			ao_rdf_time = ao_time() + AO_RDF_INTERVAL; -			ao_radio_rdf(); -			ao_delay(ao_telemetry_interval); -		}  	}  } @@ -64,14 +52,6 @@ ao_telemetry_set_interval(uint16_t interval)  	ao_wakeup(&ao_telemetry_interval);  } -void -ao_rdf_set(uint8_t rdf) -{ -	ao_rdf = rdf; -	if (rdf == 0) -		ao_radio_rdf_abort(); -} -  __xdata struct ao_task	ao_telemetry_task;  void | 
