From ff77b8cb963e42796806118b774a43d82f9c5fce Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Tue, 2 Jan 2024 16:37:15 -0500 Subject: [PATCH] IT'S CALLED A THERMOMETER --- py/hexagram/cluster.py | 4 ++-- py/hexagram/thermo.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/py/hexagram/cluster.py b/py/hexagram/cluster.py index b2bc895..8257486 100644 --- a/py/hexagram/cluster.py +++ b/py/hexagram/cluster.py @@ -10,7 +10,7 @@ from hexagram.dial import Dial from hexagram.speedo import Speedo from hexagram.tacho import Tacho from hexagram.fuel import FuelGauge -from hexagram.thermo import ThermoGauge +from hexagram.thermo import Thermometer class ShiftIndicator(Gauge): __slots__ = 'x', 'y', 'rpm_min', 'rpm_redline', 'rpm_max', @@ -130,7 +130,7 @@ class Cluster(): self.HEIGHT / 2, 8000) - self.thermo = ThermoGauge(self.WIDTH - self.HEIGHT / 2, + self.thermo = Thermometer(self.WIDTH - self.HEIGHT / 2, self.HEIGHT / 2, self.HEIGHT / 2) diff --git a/py/hexagram/thermo.py b/py/hexagram/thermo.py index 51ab33f..11e0b9f 100644 --- a/py/hexagram/thermo.py +++ b/py/hexagram/thermo.py @@ -4,10 +4,10 @@ import cairo from hexagram.dial import BottomDial -class ThermoGauge(BottomDial): MIN_ANGLE = 144.0 * (math.pi / 180.0) MAX_ANGLE = 216.0 * (math.pi / 180.0) +class Thermometer(BottomDial): MIN_VALUE = 85 MAX_VALUE = 110 WARN_VALUE = 106