adding Wide1-1 to Mic-E
This commit is contained in:
parent
6ea95995af
commit
157df8b052
|
|
@ -191,7 +191,7 @@ namespace APRSPacketLib {
|
|||
return miceLongitudeStruct;
|
||||
}
|
||||
|
||||
String generateMiceGPSBeacon(String miceMsgType, String callsign, String symbol, String overlay, float latitude, float longitude, float course, float speed, int altitude) {
|
||||
String generateMiceGPSBeacon(String miceMsgType, String callsign, String symbol, String overlay, String path, float latitude, float longitude, float course, float speed, int altitude) {
|
||||
gpsLatitudeStruct latitudeStruct = gpsDecimalToDegreesMiceLatitude(latitude);
|
||||
gpsLongitudeStruct longitudeStruct = gpsDecimalToDegreesMiceLongitude(longitude);
|
||||
|
||||
|
|
@ -215,7 +215,12 @@ namespace APRSPacketLib {
|
|||
miceInfoFieldArray[13] = 0x00; // por repetidor?
|
||||
String miceInformationField = (char*)miceInfoFieldArray;
|
||||
|
||||
return callsign + ">" + miceDestination + ":" + miceInformationField;
|
||||
String miceAPRSPacket = callsign + ">" + miceDestination;
|
||||
if (path != "") {
|
||||
miceAPRSPacket += "," + path;
|
||||
}
|
||||
miceAPRSPacket += ":" + miceInformationField;
|
||||
return miceAPRSPacket;
|
||||
}
|
||||
|
||||
String generateBasePacket(String callsign, String tocall, String path) {
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ namespace APRSPacketLib {
|
|||
gpsLatitudeStruct gpsDecimalToDegreesMiceLatitude(float latitude);
|
||||
gpsLongitudeStruct gpsDecimalToDegreesMiceLongitude(float longitude);
|
||||
|
||||
String generateMiceGPSBeacon(String miceMsgType, String callsign, String symbol, String overlay, float latitude, float longitude, float course, float speed, int altitude);
|
||||
String generateMiceGPSBeacon(String miceMsgType, String callsign, String symbol, String overlay, String path, float latitude, float longitude, float course, float speed, int altitude);
|
||||
|
||||
String generateBasePacket(String callsign, String tocall, String path);
|
||||
String generateStatusPacket(String callsign, String tocall, String path, String status);
|
||||
|
|
|
|||
|
|
@ -391,14 +391,14 @@ namespace STATION_Utils {
|
|||
String packet;
|
||||
if (Config.bme.sendTelemetry && type == "Wx") {
|
||||
if (miceActive) {
|
||||
packet = APRSPacketLib::generateMiceGPSBeacon(currentBeacon->micE, currentBeacon->callsign,"_", currentBeacon->overlay, gps.location.lat(), gps.location.lng(), gps.course.deg(), gps.speed.knots(), gps.altitude.meters());
|
||||
packet = APRSPacketLib::generateMiceGPSBeacon(currentBeacon->micE, currentBeacon->callsign,"_", currentBeacon->overlay, Config.path, gps.location.lat(), gps.location.lng(), gps.course.deg(), gps.speed.knots(), gps.altitude.meters());
|
||||
} else {
|
||||
packet = APRSPacketLib::generateGPSBeaconPacket(currentBeacon->callsign, "APLRT1", Config.path, "/", APRSPacketLib::encondeGPS(gps.location.lat(),gps.location.lng(), gps.course.deg(), gps.speed.knots(), currentBeacon->symbol, Config.sendAltitude, gps.altitude.feet(), sendStandingUpdate, "Wx"));
|
||||
}
|
||||
packet += BME_Utils::readDataSensor("APRS");
|
||||
} else {
|
||||
if (miceActive) {
|
||||
packet = APRSPacketLib::generateMiceGPSBeacon(currentBeacon->micE, currentBeacon->callsign, currentBeacon->symbol, currentBeacon->overlay, gps.location.lat(), gps.location.lng(), gps.course.deg(), gps.speed.knots(), gps.altitude.meters());
|
||||
packet = APRSPacketLib::generateMiceGPSBeacon(currentBeacon->micE, currentBeacon->callsign, currentBeacon->symbol, currentBeacon->overlay, Config.path, gps.location.lat(), gps.location.lng(), gps.course.deg(), gps.speed.knots(), gps.altitude.meters());
|
||||
} else {
|
||||
packet = APRSPacketLib::generateGPSBeaconPacket(currentBeacon->callsign, "APLRT1", Config.path, currentBeacon->overlay, APRSPacketLib::encondeGPS(gps.location.lat(),gps.location.lng(), gps.course.deg(), gps.speed.knots(), currentBeacon->symbol, Config.sendAltitude, gps.altitude.feet(), sendStandingUpdate, "GPS"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue