summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-04-10 17:47:57 +0200
committerMichael Buesch <mb@bu3sch.de>2009-04-10 17:47:57 +0200
commit3e7e105743960bdfce80f5ee7b29aecc48406d6f (patch)
tree11a7e75b94fa8de10429b3203f4d9c265836745e
parentc5b64ff2f10046b5c82b55e12a13b7bdad62c5c1 (diff)
downloadcnc-3e7e105743960bdfce80f5ee7b29aecc48406d6f.tar.xz
cnc-3e7e105743960bdfce80f5ee7b29aecc48406d6f.zip
pressure_control: Calibrate sensor
Signed-off-by: Michael Buesch <mb@bu3sch.de>
-rw-r--r--pressure_control/firmware/sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pressure_control/firmware/sensor.c b/pressure_control/firmware/sensor.c
index 4ec0b3b..475cc6e 100644
--- a/pressure_control/firmware/sensor.c
+++ b/pressure_control/firmware/sensor.c
@@ -29,11 +29,11 @@
/* The sensor value offset, in millivolts.
* This value is subtracted from the measured voltage before
* processing. */
-#define SENSOR_MV_OFFSET 200
+#define SENSOR_MV_OFFSET 245
/* The Full Scale Output (maximum) output value of the sensor,
* in millivolts. */
-#define SENSOR_FULL_SCALE_MV U32(4700)
+#define SENSOR_FULL_SCALE_MV U32(4400)
/* The pressure at Full Scale Output, in millibar. */
#define SENSOR_FULL_SCALE_MBAR U32(10000)
bues.ch cgit interface