event_based_logging Event based logging for a measurement



This measurement script is used to decide whether or not to log. The goal is to log if there is a significant change between two readings.

We compare current reading to the previously LOGGED one. If the difference is large enough, we log the value, and increase the measurement interval. If the difference is not significant, we want to log at at much slower rate.


Searches log for said measurement

Parameters:meas_index (int, e.g. 1 for M1, 12 for M12) – which measurement to search log for
Returns:either the reading found in the log, or a reading with bad quality
Return type:Reading