summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.h
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-04-10 16:56:51 +0200
committerMichael Buesch <mb@bu3sch.de>2009-04-10 16:56:51 +0200
commit75a29d4d986e32bd82bc6468bba11567932a5349 (patch)
treec0a426aa40bf7f44bf87353460d9230326f77fac /pressure_control/firmware/main.h
parente54d84019bac17f0a7ac49e9147471ff5df85a02 (diff)
downloadcnc-75a29d4d986e32bd82bc6468bba11567932a5349.tar.xz
cnc-75a29d4d986e32bd82bc6468bba11567932a5349.zip
pressure_control: Fix automatic pressure control
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.h')
-rw-r--r--pressure_control/firmware/main.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pressure_control/firmware/main.h b/pressure_control/firmware/main.h
index 9f5cef1..cf6978a 100644
--- a/pressure_control/firmware/main.h
+++ b/pressure_control/firmware/main.h
@@ -18,6 +18,8 @@ struct pressure_config {
struct pressure_state {
/* Current pressure in the tank (in mBar) */
uint16_t mbar;
+ /* Reported pressure via RS232 */
+ uint16_t reported_mbar;
/* True, if the current pressure value needs checking against
* the desired pressure config. */
bool needs_checking;
@@ -26,8 +28,6 @@ struct pressure_state {
* 0 = trigger now
* -1 = triggered and running. */
int8_t sensor_trigger_cnt;
- /* Current valves state (enum valves_global_state) */
- uint8_t valves;
};
void get_pressure_config(struct pressure_config *cfg);
bues.ch cgit interface