Skip to content

Commit

Permalink
chore: make coefficients immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jul 27, 2024
1 parent d7bc5ce commit ecdfe4f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/mopeka_iot_ble/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@

# converting sensor value to height
MOPEKA_TANK_LEVEL_COEFFICIENTS = {
MediumType.PROPANE: [0.573045, -0.002822, -0.00000535],
MediumType.AIR: [0.153096, 0.000327, -0.000000294],
MediumType.FRESH_WATER: [0.600592, 0.003124, -0.00001368],
MediumType.WASTE_WATER: [0.600592, 0.003124, -0.00001368],
MediumType.LIVE_WELL: [0.600592, 0.003124, -0.00001368],
MediumType.BLACK_WATER: [0.600592, 0.003124, -0.00001368],
MediumType.RAW_WATER: [0.600592, 0.003124, -0.00001368],
MediumType.GASOLINE: [0.7373417462, -0.001978229885, 0.00000202162],
MediumType.DIESEL: [0.7373417462, -0.001978229885, 0.00000202162],
MediumType.LNG: [0.7373417462, -0.001978229885, 0.00000202162],
MediumType.OIL: [0.7373417462, -0.001978229885, 0.00000202162],
MediumType.HYDRAULIC_OIL: [0.7373417462, -0.001978229885, 0.00000202162],
MediumType.PROPANE: (0.573045, -0.002822, -0.00000535),
MediumType.AIR: (0.153096, 0.000327, -0.000000294),
MediumType.FRESH_WATER: (0.600592, 0.003124, -0.00001368),
MediumType.WASTE_WATER: (0.600592, 0.003124, -0.00001368),
MediumType.LIVE_WELL: (0.600592, 0.003124, -0.00001368),
MediumType.BLACK_WATER: (0.600592, 0.003124, -0.00001368),
MediumType.RAW_WATER: (0.600592, 0.003124, -0.00001368),
MediumType.GASOLINE: (0.7373417462, -0.001978229885, 0.00000202162),
MediumType.DIESEL: (0.7373417462, -0.001978229885, 0.00000202162),
MediumType.LNG: (0.7373417462, -0.001978229885, 0.00000202162),
MediumType.OIL: (0.7373417462, -0.001978229885, 0.00000202162),
MediumType.HYDRAULIC_OIL: (0.7373417462, -0.001978229885, 0.00000202162),
}

MOPEKA_MANUFACTURER = 89
Expand Down

0 comments on commit ecdfe4f

Please sign in to comment.