mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Polish up the reduced position accuracy
This commit is contained in:
parent
85c2a9e938
commit
5d9b25b0aa
5 changed files with 4 additions and 4 deletions
|
|
@ -256,6 +256,7 @@ func upsertPositionPacket (packet: MeshPacket, context: NSManagedObjectContext)
|
|||
position.satsInView = Int32(positionMessage.satsInView)
|
||||
position.speed = Int32(positionMessage.groundSpeed * UInt32(3.6))
|
||||
position.heading = Int32(positionMessage.groundTrack)
|
||||
position.precisionBits = Int32(positionMessage.precisionBits)
|
||||
if positionMessage.timestamp != 0 {
|
||||
position.time = Date(timeIntervalSince1970: TimeInterval(Int64(positionMessage.timestamp)))
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ struct NodeMapSwiftUI: View {
|
|||
let radius : CLLocationDistance = pp?.precisionMeters ?? 0
|
||||
if radius > 0.0 {
|
||||
MapCircle(center: position.coordinate, radius: radius)
|
||||
.foregroundStyle(Color(nodeColor).opacity(0.60))
|
||||
.foregroundStyle(Color(nodeColor).opacity(0.25))
|
||||
}
|
||||
}
|
||||
Annotation(position.latest ? node.user?.shortName ?? "?": "", coordinate: position.coordinate) {
|
||||
|
|
|
|||
|
|
@ -122,7 +122,7 @@ struct MeshMap: View {
|
|||
let radius : CLLocationDistance = pp?.precisionMeters ?? 0
|
||||
if radius > 0.0 {
|
||||
MapCircle(center: position.coordinate, radius: radius)
|
||||
.foregroundStyle(Color(nodeColor).opacity(0.60))
|
||||
.foregroundStyle(Color(nodeColor).opacity(0.25))
|
||||
}
|
||||
}
|
||||
/// Routes
|
||||
|
|
|
|||
|
|
@ -335,7 +335,6 @@ struct Channels: View {
|
|||
positionPrecision = 14
|
||||
}
|
||||
hasChanges = true
|
||||
|
||||
}
|
||||
.onChange(of: positionPrecision) { _ in
|
||||
hasChanges = true
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ struct PositionConfig: View {
|
|||
VStack(alignment: .leading) {
|
||||
Picker("Broadcast Interval", selection: $positionBroadcastSeconds) {
|
||||
ForEach(UpdateIntervals.allCases) { at in
|
||||
if at.rawValue >= 900 {
|
||||
if at.rawValue >= 300 {
|
||||
Text(at.description)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue