projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'aprs' into 'master'
[fw/altos]
/
src
/
test
/
ao_aprs_test.c
diff --git
a/src/test/ao_aprs_test.c
b/src/test/ao_aprs_test.c
index d350ca0d54772bbaf30da54db3c12c3ab7aeeeb5..3b31f2d35ae764ce16033129fbe5481470bab70b 100644
(file)
--- a/
src/test/ao_aprs_test.c
+++ b/
src/test/ao_aprs_test.c
@@
-23,6
+23,8
@@
#include <ao_telemetry.h>
#include <ao_telemetry.h>
+struct ao_telemetry_location ao_gps_data;
+
#define AO_APRS_TEST
typedef int16_t (*ao_radio_fill_func)(uint8_t *buffer, int16_t len);
#define AO_APRS_TEST
typedef int16_t (*ao_radio_fill_func)(uint8_t *buffer, int16_t len);
@@
-89,12
+91,17
@@
audio_gap(int secs)
// This is where we go after reset.
int main(int argc, char **argv)
{
// This is where we go after reset.
int main(int argc, char **argv)
{
- tncInit();
-
audio_gap(1);
audio_gap(1);
+ ao_gps_data.latitude = (45.0 + 28.25 / 60.0) * 10000000;
+ ao_gps_data.longitude = (-(122 + 44.2649 / 60.0)) * 10000000;
+ ao_gps_data.altitude = 84;
+
/* Transmit one packet */
/* Transmit one packet */
- tncTxPacket();
+ ao_aprs_send();
+
+ tncBuffer[strlen((char *) tncBuffer) - 2] = '\0';
+ fprintf(stderr, "packet: %s\n", tncBuffer);
exit(0);
}
exit(0);
}