Add Send/Recv gauges, fix tick loop to consume without BLE

- Four gauges: Send A/B (commanded) and Recv A/B (device-reported)
- State.LastSentA/B tracks what would be sent after limiting
- ConsumeTick always runs; only SendB0 gated on IsConnected
- Stream queues drain correctly in dev mode (no box)
- Tray icon hot state works without BLE connected
- Removed strength text label, widened form to 420x360
This commit is contained in:
2026-08-08 11:03:44 +00:00
parent 4ae5c397fd
commit 612385af7f
2 changed files with 76 additions and 46 deletions
+3
View File
@@ -16,6 +16,7 @@ public class State
public readonly ConcurrentQueue<WaveFrame> StreamB = new();
public int ActualA, ActualB;
public int LastSentA, LastSentB;
public int MaxStrength = 200;
public LimitMode LimitMode = LimitMode.Clamp;
@@ -99,6 +100,8 @@ public class State
: (byte)Math.Clamp(desired, 0, limit);
var valA = ApplyLimit(DesiredA);
var valB = ApplyLimit(DesiredB);
LastSentA = valA;
LastSentB = valB;
DirtyA = false;
DirtyB = false;