Skip to content

Commit

Permalink
Merge pull request #171 from sfstar/bugfix/patch_gps_altitude_to_use_…
Browse files Browse the repository at this point in the history
…meters_instead_of_meters_per_seconds

Change gps altitude register from meters per seconds to meters
  • Loading branch information
sfstar authored Feb 27, 2024
2 parents 81f9233 + 120e5a4 commit ab505e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/victron/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
UnitOfElectricPotential,
UnitOfElectricCurrent,
UnitOfFrequency,
UnitOfLength,
UnitOfTime,
REVOLUTIONS_PER_MINUTE,
UnitOfIrradiance,
Expand Down Expand Up @@ -615,7 +616,7 @@ class charger_mode(Enum):
"gps_speed": RegisterInfo(2805, UINT16, UnitOfSpeed.METERS_PER_SECOND, 100),
"gps_fix": RegisterInfo(register=2806, dataType=UINT16, entityType=BoolReadEntityType()),
"gps_numberofsatellites": RegisterInfo(2807, UINT16),
"gps_altitude": RegisterInfo(2808, INT32, UnitOfSpeed.METERS_PER_SECOND, 10)
"gps_altitude": RegisterInfo(2808, INT32, UnitOfLength.METERS, 10)
}

class ess_batterylife_state(Enum):
Expand Down

0 comments on commit ab505e2

Please sign in to comment.