2015-04-01 14:13:01 +00:00
|
|
|
/*
|
2015-04-02 10:38:48 +00:00
|
|
|
* Outputs aprs uisng ax25
|
2015-04-01 14:13:01 +00:00
|
|
|
* Copyright (C) 2015 Richard Meadows <richardeoin>
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining
|
|
|
|
* a copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
|
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef APRS_H
|
|
|
|
#define APRS_H
|
|
|
|
|
2015-06-30 16:18:00 +00:00
|
|
|
#include "data.h"
|
2015-06-26 00:36:25 +00:00
|
|
|
|
2015-04-14 13:55:46 +00:00
|
|
|
/**
|
|
|
|
* Reference APRS Protocol Spec http://www.aprs.org/doc/APRS101.PDF
|
|
|
|
*/
|
2015-10-10 22:18:46 +00:00
|
|
|
#define APRS_FLIGHT_PARAMS
|
|
|
|
#ifdef APRS_FLIGHT_PARAMS /* ----------- Parameters for flight */
|
2015-06-26 00:36:25 +00:00
|
|
|
|
2015-04-14 13:55:46 +00:00
|
|
|
/**
|
|
|
|
* This should be a full licensed callsign you own. Not mine plz k thx bai
|
|
|
|
*
|
|
|
|
* Max. 6 characters
|
|
|
|
*/
|
|
|
|
#define APRS_CALLSIGN "M0SBU"
|
2015-10-11 10:46:17 +00:00
|
|
|
#define APRS_SSID 11
|
2015-04-14 13:55:46 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* APRS Map Symbol. See Appendix 2: APRS Symbol Tables
|
|
|
|
*/
|
2015-06-26 00:36:25 +00:00
|
|
|
#define APRS_SYMBOL "/O" /* Balloon */
|
|
|
|
|
|
|
|
#else /* ----------- Parameters for testing */
|
|
|
|
|
2015-07-24 22:18:16 +00:00
|
|
|
#warning Using APRS test parameters
|
|
|
|
|
2015-06-26 00:36:25 +00:00
|
|
|
#define APRS_CALLSIGN "M0SBU"
|
|
|
|
#define APRS_SSID 2
|
|
|
|
#define APRS_SYMBOL "/2"
|
|
|
|
|
|
|
|
#endif
|
2015-04-14 13:55:46 +00:00
|
|
|
|
2015-10-06 18:27:31 +00:00
|
|
|
void encode_backlog(char* str, tracker_datapoint* dp);
|
|
|
|
|
2015-06-30 16:18:00 +00:00
|
|
|
void aprs_set_datapoint(tracker_datapoint* dp);
|
|
|
|
void aprs_set_comment(char* comment);
|
2015-07-01 18:17:55 +00:00
|
|
|
void aprs_set_backlog_comment(tracker_datapoint* log_dp);
|
2015-04-14 15:08:33 +00:00
|
|
|
|
2015-06-25 15:41:35 +00:00
|
|
|
uint8_t aprs_start(void);
|
2015-04-02 18:52:02 +00:00
|
|
|
uint8_t aprs_tick(void);
|
2015-04-01 14:13:01 +00:00
|
|
|
|
|
|
|
#endif /* APRS_H */
|