diff --git a/Meshtastic/Helpers/LocationHelper.swift b/Meshtastic/Helpers/LocationHelper.swift index 18e97b28..c40b4d2a 100644 --- a/Meshtastic/Helpers/LocationHelper.swift +++ b/Meshtastic/Helpers/LocationHelper.swift @@ -54,12 +54,19 @@ class LocationHelper: NSObject, ObservableObject { static var satsInView: Int { - var sats = 0 + // If we have a position we have a sat + var sats = 1 if shared.locationManager.location?.verticalAccuracy ?? 0 > 0 { sats = 4 - if 0...60 ~= shared.locationManager.location?.horizontalAccuracy ?? 0{ + if 0...15 ~= shared.locationManager.location?.horizontalAccuracy ?? 0{ + sats = 12 + } else if 16...30 ~= shared.locationManager.location?.horizontalAccuracy ?? 0{ + sats = 10 + } else if 31...45 ~= shared.locationManager.location?.horizontalAccuracy ?? 0{ + sats = 8 + } else if 46...60 ~= shared.locationManager.location?.horizontalAccuracy ?? 0{ sats = 6 } diff --git a/Meshtastic/Views/Nodes/PositionLog.swift b/Meshtastic/Views/Nodes/PositionLog.swift index 7aa820ea..95f5bf9b 100644 --- a/Meshtastic/Views/Nodes/PositionLog.swift +++ b/Meshtastic/Views/Nodes/PositionLog.swift @@ -125,11 +125,10 @@ struct PositionLog: View { if clearPositions(destNum: node.num, context: context) { - print("Clear Position Log Failed") + print("Successfully Cleared Position Log") } else { - - + print("Clear Position Log Failed") } } }