Added ROT to boatdata

This commit is contained in:
Thomas Hooge 2025-07-18 12:08:20 +02:00
parent be50c5e70a
commit a3ff1e7bc5
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,8 @@ class BoatValueAngle(BoatValue):
if self.simulated: if self.simulated:
if self.valname == "BTW": if self.valname == "BTW":
return "253" return "253"
if self.valname == "TWD":
return "62"
else: else:
return "120" return "120"
if self.value: if self.value:
@ -397,6 +399,7 @@ class BoatData():
self.stw = BoatValueSpeed("STW", "kn") self.stw = BoatValueSpeed("STW", "kn")
self.dbt = BoatValueDepth("DBT", "m") self.dbt = BoatValueDepth("DBT", "m")
self.dbs = BoatValueDepth("DBS", "m") self.dbs = BoatValueDepth("DBS", "m")
self.rot = BoatValueAngle("ROT", "deg")
self.roll = BoatValueAngle("ROLL", "deg") self.roll = BoatValueAngle("ROLL", "deg")
self.pitch = BoatValueAngle("PTCH", "deg") self.pitch = BoatValueAngle("PTCH", "deg")
self.yaw = BoatValueAngle("YAW", "deg") self.yaw = BoatValueAngle("YAW", "deg")
@ -463,6 +466,7 @@ class BoatData():
'PTCH': self.pitch, 'PTCH': self.pitch,
'RPOS': self.rpos, 'RPOS': self.rpos,
'ROLL': self.roll, 'ROLL': self.roll,
'ROT': self.rot,
'SOG': self.sog, 'SOG': self.sog,
'STW': self.stw, 'STW': self.stw,
'TWD': self.twd, 'TWD': self.twd,