Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
9bfd63a9
Commit
9bfd63a9
authored
Apr 10, 2021
by
Alan Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Widened Shore Power voltage range for boat sensor decoder.
parent
246ee412
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
.gitignore
.gitignore
+1
-0
bmsapp/lora/decode_dragino.py
bmsapp/lora/decode_dragino.py
+1
-1
No files found.
.gitignore
View file @
9bfd63a9
env/
settings.py
docs/source/_build/
.vscode/
...
...
bmsapp/lora/decode_dragino.py
View file @
9bfd63a9
...
...
@@ -116,7 +116,7 @@ def decode_boat_lt2(data: bytes) -> Dict[str, Any]:
# ------- Shore Power
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.
7
5
else
0
# ---- Battery voltage
batV
=
int16
(
2
)
/
1000.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment