mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Proto updates, consistant stroke length
This commit is contained in:
parent
0baf1368d7
commit
4c88418439
3 changed files with 9 additions and 3 deletions
|
|
@ -227,11 +227,15 @@ struct Config {
|
|||
///
|
||||
/// Tracker device role
|
||||
/// Position Mesh packets will be prioritized higher and sent more frequently by default.
|
||||
/// When used in conjunction with power.is_power_saving = true, nodes will wake up,
|
||||
/// send position, and then sleep for position.position_broadcast_secs seconds.
|
||||
case tracker // = 5
|
||||
|
||||
///
|
||||
/// Sensor device role
|
||||
/// Telemetry Mesh packets will be prioritized higher and sent more frequently by default.
|
||||
/// When used in conjunction with power.is_power_saving = true, nodes will wake up,
|
||||
/// send environment telemetry, and then sleep for telemetry.environment_update_interval seconds.
|
||||
case sensor // = 6
|
||||
case UNRECOGNIZED(Int)
|
||||
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ enum PortNum: SwiftProtobuf.Enum {
|
|||
|
||||
///
|
||||
/// Same as Text Message but originating from Detection Sensor Module.
|
||||
/// NOTE: This portnum traffic is not sent to the public MQTT starting at firmware version 2.2.9
|
||||
case detectionSensorApp // = 10
|
||||
|
||||
///
|
||||
|
|
@ -135,6 +136,7 @@ enum PortNum: SwiftProtobuf.Enum {
|
|||
///
|
||||
/// Optional port for messages for the range test module.
|
||||
/// ENCODING: ASCII Plaintext
|
||||
/// NOTE: This portnum traffic is not sent to the public MQTT starting at firmware version 2.2.9
|
||||
case rangeTestApp // = 66
|
||||
|
||||
///
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ struct NodeMapSwiftUI: View {
|
|||
if showConvexHull {
|
||||
let hull = lineCoords.getConvexHull()
|
||||
MapPolygon(coordinates: hull)
|
||||
.stroke(Color(nodeColor.darker()), lineWidth: 4)
|
||||
.stroke(Color(nodeColor.darker()), lineWidth: 3)
|
||||
.foregroundStyle(Color(nodeColor).opacity(0.4))
|
||||
}
|
||||
/// Waypoint Annotations
|
||||
|
|
@ -160,14 +160,14 @@ struct NodeMapSwiftUI: View {
|
|||
.resizable()
|
||||
.scaledToFit()
|
||||
.foregroundStyle(Color(UIColor(hex: UInt32(node.num))).isLight() ? .black : .white)
|
||||
.background(Color(UIColor(hex: UInt32(node.num)).lighter()))
|
||||
.background(Color(UIColor(hex: UInt32(node.num))))
|
||||
.clipShape(Circle())
|
||||
.rotationEffect(headingDegrees)
|
||||
.frame(width: 16, height: 16)
|
||||
|
||||
} else {
|
||||
Circle()
|
||||
.fill(Color(UIColor(hex: UInt32(node.num)).lighter()))
|
||||
.fill(Color(UIColor(hex: UInt32(node.num))))
|
||||
.strokeBorder(Color(UIColor(hex: UInt32(node.num))).isLight() ? .black : .white ,lineWidth: 2)
|
||||
.frame(width: 12, height: 12)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue