Skip to content

Commit

Permalink
Merge pull request #6 from MO-RISE/feat/support_fuel_flow_meters
Browse files Browse the repository at this point in the history
Adding support for fuel flow meters
  • Loading branch information
freol35241 authored Aug 25, 2023
2 parents f7641ab + 92e59be commit 5e349b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/post-create-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pip3 install --user -r requirements_dev.txt

# Install bats helpers
[ -d tests/bats-helpers ] && rm -rf tests/bats-helpers && mkdir -p tests/bats-helpers
[ -d tests/bats-helpers ] && rm -rf tests/bats-helpers && mkdir tests/bats-helpers

git clone --depth 1 https://github.com/bats-core/bats-support.git tests/bats-helpers/bats-support || true
git clone --depth 1 https://github.com/bats-core/bats-assert.git tests/bats-helpers/bats-assert || true
Expand Down
8 changes: 8 additions & 0 deletions bin/canboat2pontos
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ def handler_127257(data: Dict) -> List[Tuple[str, Dict]]:
]


def handler_127489(data: Dict) -> List[Tuple[str, Dict]]:
"""Engine Parameters, Dynamic"""
return [
(create_topic("enginemain_fuelcons_lph"), abs(data["fields"]["Fuel Rate"])),
]


def handler_129026(data: Dict) -> List[Tuple[str, Dict]]:
"""COG & SOG"""
if data["fields"]["COG Reference"] == "Magnetic":
Expand All @@ -73,6 +80,7 @@ HANDLERS = {
127250: handler_127250,
127251: handler_127251,
127257: handler_127257,
127489: handler_127489,
129026: handler_129026,
129029: handler_129029,
}
Expand Down

0 comments on commit 5e349b0

Please sign in to comment.