Commit 9bfd63a9 authored by Alan Mitchell's avatar Alan Mitchell

Widened Shore Power voltage range for boat sensor decoder.

parent 246ee412
env/
settings.py settings.py
docs/source/_build/ docs/source/_build/
.vscode/ .vscode/
......
...@@ -116,7 +116,7 @@ def decode_boat_lt2(data: bytes) -> Dict[str, Any]: ...@@ -116,7 +116,7 @@ def decode_boat_lt2(data: bytes) -> Dict[str, Any]:
# ------- Shore Power # ------- Shore Power
shoreV = int16(0) / 1000. # voltage from wall wart in Volts shoreV = int16(0) / 1000. # voltage from wall wart in Volts
res['shorePower'] = 1 if shoreV > 4.3 and shoreV < 5.5 else 0 res['shorePower'] = 1 if shoreV > 4.3 and shoreV < 5.75 else 0
# ---- Battery voltage # ---- Battery voltage
batV = int16(2) / 1000. batV = int16(2) / 1000.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment