addReading method

void addReading(
  1. ScienceSensor sensor,
  2. int sample,
  3. Timestamp timestamp,
  4. double value,
)

Adds a value to the correct analysis for the sensor and sample.

Implementation

void addReading(ScienceSensor sensor, int sample, Timestamp timestamp, double value) =>
  allSamples[sensor]![sample].addReading(timestamp, value);