From 75f65293a01a6a79cf34d206f36e5d667c0f9940 Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Thu, 16 Jul 2009 01:42:54 +0000 Subject: Rough oncore driver. Doesn't do anything useful, but will be handy for people with actual hardware who can hack on the decoders. Doesn't break the regression tests either. --- packet_states.h | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) (limited to 'packet_states.h') diff --git a/packet_states.h b/packet_states.h index 778770e8..72a57fa6 100644 --- a/packet_states.h +++ b/packet_states.h @@ -65,9 +65,10 @@ ZODIAC_RECOGNIZED, /* found end of the Zodiac packet */ #endif /* ZODIAC_ENABLE */ -#if defined(TNT_ENABLE) || defined(GARMINTXT_ENABLE) - GTXT_LEADER, /* saw True North status leader '@' */ - /* Garmin Simple Text starts with @ leader */ +#if defined(TNT_ENABLE) || defined(GARMINTXT_ENABLE) || defined(ONCORE_ENABLE) + AT1_LEADER, /* saw True North status leader '@' */ + /* Garmin Simple Text starts with @ leader */ + /* Oncore starts with @ leader */ GTXT_RECOGNIZED, /* */ #endif @@ -114,6 +115,26 @@ UBX_RECOGNIZED, /* this is also UBX_CHECKSUM_B */ #endif +#ifdef SUPERSTAR2_ENABLE + SUPERSTAR2_LEADER, /* leading SOH */ + SUPERSTAR2_ID1, /* message type */ + SUPERSTAR2_ID2, /* message type xor 0xff */ + SUPERSTAR2_PAYLOAD, /* length of the actual packet data */ + SUPERSTAR2_CKSUM1, + SUPERSTAR2_CKSUM2, + SUPERSTAR2_RECOGNIZED, +#endif + +#ifdef ONCORE_ENABLE + ONCORE_AT2, /* second @ */ + ONCORE_ID1, /* first character of command type */ + ONCORE_ID2, /* second character of command type */ + ONCORE_PAYLOAD, + ONCORE_CR, /* closing CR */ + ONCORE_RECOGNIZED, /* closing LF */ +#endif + + /* * Packet formats without checksums start here. We list them last so * that if a format with a conflicting structure *and* a checksum can @@ -128,16 +149,6 @@ GARMIN_RECOGNIZED, /* found end of Garmin packet */ #endif /* TSIP_ENABLE GARMIN_ENABLE */ -#ifdef SUPERSTAR2_ENABLE - SUPERSTAR2_LEADER, /* leading SOH */ - SUPERSTAR2_ID1, /* message type */ - SUPERSTAR2_ID2, /* message type xor 0xff */ - SUPERSTAR2_PAYLOAD, /* length of the actual packet data */ - SUPERSTAR2_CKSUM1, - SUPERSTAR2_CKSUM2, - SUPERSTAR2_RECOGNIZED, -#endif - #ifdef RTCM104V2_ENABLE RTCM2_SYNC_STATE, /* we have sync lock */ RTCM2_SKIP_STATE, /* we have sync lock, but this character is bad */ -- cgit v1.2.1