SapFlow Probe
A low-cost HRM probe for measuring a tree's water consumption
|
static struct pt measure_thd
Protothread control structure for measure()
float heater
Temperature (Celcius) at the heater probe.
static struct pt baseline_thd
Protothread control structure for baseline()
float upper
Temperature (Celcius) at the upper probe.
static bool sample_trigger
global flag for synchronizing live data processing. Set by sample_timer()
static struct temperature reference
The baseline temperature reading, computed by the baseline() protothread.
int delta(struct pt *pt=&delta_thd)
Calculates temperature delta and sapflow.
int measure(struct pt *pt=&measure_thd)
Captures a measurement from the three probes.
float lower
Temperature (Celcius) at the lower probe.
int baseline(struct pt *pt=&baseline_thd)
Calculates baseline temperature.
static struct pt delta_thd
Protothread control structure for delta()
static struct temperature latest
The most recent temperature reading, measured by the measure() protothread.
static struct pt sample_timer_thd
Protothread control structure for sample_timer()
Stores a tuple of temperature values.
int sample_timer(struct pt *pt=&sample_timer_thd)
Controls timing of the measurements.