Update LoRa_APRS_Tracker.cpp
This commit is contained in:
parent
bc267e9e3e
commit
7a685403af
1 changed files with 14 additions and 1 deletions
|
@ -314,8 +314,21 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gps_time_update) {
|
if (gps_time_update) {
|
||||||
|
// neu für lat/lng im Display
|
||||||
|
static String dlat = "";
|
||||||
|
static String dlng = "";
|
||||||
|
|
||||||
show_display(BeaconMan.getCurrentBeaconConfig()->callsign, createDateString(now()) + " " + createTimeString(now()), String("Sats: ") + gps.satellites.value() + " HDOP: " + gps.hdop.hdop(), String("Nxt Bcn: ") + (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active ? "~" : "") + createTimeString(nextBeaconTimeStamp), BatteryIsConnected ? (String("Bat: ") + batteryVoltage + "V, " + batteryChargeCurrent + "mA") : "Powered via USB", String("Smart Beacon: " + getSmartBeaconState()));
|
if (gps_loc_update) {
|
||||||
|
dlat = create_lat_aprs(gps.location.rawLat()) + " " + BeaconMan.getCurrentBeaconConfig()->type;
|
||||||
|
dlng = create_long_aprs(gps.location.rawLng());
|
||||||
|
} else {
|
||||||
|
dlat = BeaconMan.getCurrentBeaconConfig()->message;
|
||||||
|
dlng = "";
|
||||||
|
}
|
||||||
|
//
|
||||||
|
show_display(BeaconMan.getCurrentBeaconConfig()->callsign, createDateString(now()) + " " + createTimeString(now()), String("Sats: ") + gps.satellites.value() + " HDOP: " + gps.hdop.hdop(), String("Nxt Bcn: ") + (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active ? "~" : "") + createTimeString(nextBeaconTimeStamp), BatteryIsConnected ? (String("Bat: ") + batteryVoltage + "V, " + batteryChargeCurrent + "mA") : "Powered via USB", String(dlat + " " + dlng));
|
||||||
|
|
||||||
|
// show_display(BeaconMan.getCurrentBeaconConfig()->callsign, createDateString(now()) + " " + createTimeString(now()), String("Sats: ") + gps.satellites.value() + " HDOP: " + gps.hdop.hdop(), String("Nxt Bcn: ") + (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active ? "~" : "") + createTimeString(nextBeaconTimeStamp), BatteryIsConnected ? (String("Bat: ") + batteryVoltage + "V, " + batteryChargeCurrent + "mA") : "Powered via USB", String("Smart Beacon: " + getSmartBeaconState()));
|
||||||
|
|
||||||
if (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active) {
|
if (BeaconMan.getCurrentBeaconConfig()->smart_beacon.active) {
|
||||||
// Change the Tx internal based on the current speed
|
// Change the Tx internal based on the current speed
|
||||||
|
|
Loading…
Reference in a new issue