From 2067eed91adc2e3b7f66154e7886fba56b787e42 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Fri, 29 May 2009 21:55:22 +0200 Subject: pressure_control: Cycle the sensors Signed-off-by: Michael Buesch --- pressure_control/firmware/main.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pressure_control/firmware/main.h') diff --git a/pressure_control/firmware/main.h b/pressure_control/firmware/main.h index 7a9dbf2..279b7e0 100644 --- a/pressure_control/firmware/main.h +++ b/pressure_control/firmware/main.h @@ -26,6 +26,11 @@ typedef int16_t s_jiffies_t; jiffies_t get_jiffies(void); +enum { + SENSOR_CYCLE_XY = 0, + SENSOR_CYCLE_Z, + __NR_SENSOR_CYCLE, +}; struct pressure_config { /* Desired pressure in mBar */ @@ -39,8 +44,8 @@ struct pressure_config { struct pressure_state { /* Sensing and adjustment logic enabled? */ bool device_enabled; - /* Current pressure in the tank (in mBar) */ - uint16_t mbar; + /* The last measured pressure (in mBar) */ + uint16_t measured_mbar; /* Reported pressure via RS232 */ uint16_t reported_mbar; /* True, if the current pressure value needs checking against -- cgit v1.2.3