From 2b99c64ee2010eeb266817e343ad9c8c59b16dfe Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Thu, 22 Dec 2011 14:46:50 +0000 Subject: added calibration for XO 1.75 voltage --- (limited to 'plugins') diff --git a/plugins/audio_sensors/audio_sensors.py b/plugins/audio_sensors/audio_sensors.py index e0d7c76..1cb9961 100644 --- a/plugins/audio_sensors/audio_sensors.py +++ b/plugins/audio_sensors/audio_sensors.py @@ -139,9 +139,9 @@ class Audio_sensors(Plugin): elif self.hw == XO15: self.voltage_gain = -0.0001471 self.voltage_bias = 1.695 - else: # FIXME: Calibrate 1.75 - self.voltage_gain = -0.0001471 - self.voltage_bias = 1.695 + else: # XO 1.75 + self._voltage_gain = 0.00007692 + self._voltage_bias = 0.719 palette.add_block('resistance', style='box-style', label=_('resistance'), -- cgit v0.9.1