summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-12-05 20:10:54 -0800
committerKeith Packard <keithp@keithp.com>2012-12-05 20:10:54 -0800
commit8b1f186a574c22cebd9daba9d352ec82556c3b28 (patch)
tree059ebb6575e79befcc60b9eae22c964d21a43206 /src/test
parent0c2c47dd7af2fc95de852178c4244daba02f44ed (diff)
altos: Generate all of the APRS messages
Note that two of them are in NMEA form, which some receivers appear not to parse Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ao_aprs_test.c35
1 files changed, 14 insertions, 21 deletions
diff --git a/src/test/ao_aprs_test.c b/src/test/ao_aprs_test.c
index d791e930..1c0b252b 100644
--- a/src/test/ao_aprs_test.c
+++ b/src/test/ao_aprs_test.c
@@ -54,42 +54,34 @@
*/
-// This is where we go after reset.
-int main(int argc, char **argv)
+static void
+audio_gap(int secs)
{
- uint8_t utcSeconds, lockLostCounter;
-
-//test();
+ int samples = secs * 9600;
- // Configure the basic systems.
-// sysInit();
-
- // Wait for the power converter chains to stabilize.
-// delay_ms (100);
+ while (samples--)
+ putchar(0x7f);
+}
- // Setup the subsystems.
-// adcInit();
-// flashInit();
+// This is where we go after reset.
+int main(int argc, char **argv)
+{
+ uint8_t utcSeconds, lockLostCounter, i;
gpsInit();
-// logInit();
-// timeInit();
-// serialInit();
tncInit();
- // Program the DDS.
-// ddsInit();
-
+ audio_gap(1);
// Transmit software version packet on start up.
tncTxPacket(TNC_MODE_1200_AFSK);
- exit(0);
// Counters to send packets if the GPS time stamp is not available.
lockLostCounter = 5;
utcSeconds = 55;
// This is the main loop that process GPS data and waits for the once per second timer tick.
- for (;;)
+ for (i = 0; i < 5; i++)
{
+ audio_gap(10);
// Read the GPS engine serial port FIFO and process the GPS data.
// gpsUpdate();
@@ -138,6 +130,7 @@ int main(int argc, char **argv)
} // END if timeIsUpdate
} // END for
+ return 0;
}