LoRa_APRS_iGate/include/gps_utils.h

41 lines
1.3 KiB
C
Raw Normal View History

2025-07-15 16:28:23 -04:00
/* Copyright (C) 2025 Ricardo Guzman - CA2RXU
2026-02-24 23:27:36 -03:00
*
2025-07-15 16:28:23 -04:00
* This file is part of LoRa APRS iGate.
2026-02-24 23:27:36 -03:00
*
2025-07-15 16:28:23 -04:00
* LoRa APRS iGate is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
2026-02-24 23:27:36 -03:00
* the Free Software Foundation, either version 3 of the License, or
2025-07-15 16:28:23 -04:00
* (at your option) any later version.
2026-02-24 23:27:36 -03:00
*
2025-07-15 16:28:23 -04:00
* LoRa APRS iGate is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
2026-02-24 23:27:36 -03:00
*
2025-07-15 16:28:23 -04:00
* You should have received a copy of the GNU General Public License
* along with LoRa APRS iGate. If not, see <https://www.gnu.org/licenses/>.
*/
2023-06-06 12:19:56 -04:00
#ifndef GPS_UTILS_H_
#define GPS_UTILS_H_
#include <Arduino.h>
2024-02-25 10:53:16 -03:00
2023-06-06 12:19:56 -04:00
namespace GPS_Utils {
2026-02-24 23:27:36 -03:00
2024-05-30 20:04:46 -04:00
String getiGateLoRaBeaconPacket();
char *ax25_base91enc(char *s, uint8_t n, uint32_t v);
String encodeGPS(float latitude, float longitude, const String& overlay, const String& symbol);
2024-10-14 17:04:28 -03:00
void generateBeaconFirstPart();
2024-05-30 20:04:46 -04:00
void generateBeacons();
String decodeEncodedGPS(const String& packet);
String getReceivedGPS(const String& packet);
String getDistanceAndComment(const String& packet);
2023-06-06 12:19:56 -04:00
2024-10-14 17:04:28 -03:00
void setup();
void getData();
2023-06-06 12:19:56 -04:00
}
#endif