#include "configuration.h" #include "gps_utils.h" extern Configuration Config; extern WiFi_AP *currentWiFi; extern int stationMode; namespace GPS_Utils { String double2string(double n, int ndec) { String r = ""; int v = n; r += v; r += '.'; int i; for (i=0;ilatitude); stationLongitude = processLongitudeAPRS(currentWiFi->longitude); beaconPacket = Config.callsign + ">APLRG1,qAC:=" + stationLatitude + "L" + stationLongitude; if (stationMode == 1) { beaconPacket += "&"; } else { beaconPacket += "a"; } beaconPacket += Config.iGateComment; } else { //stationMode 3 y 4 stationLatitude = processLatitudeAPRS(Config.digi.latitude); stationLongitude = processLongitudeAPRS(Config.digi.longitude); beaconPacket = Config.callsign + ">APLRG1:=" + stationLatitude + "L" + stationLongitude + "#" + Config.digi.comment; } return beaconPacket; } }