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