StsTestStep constructor

StsTestStep({
  1. required StsMeasure measure,
  2. required StsConfig config,
  3. required MobilityProbe probe,
  4. required StsProcessor processor,
  5. bool includeInstructions = true,
  6. bool includeResults = true,
})

Creates a test step for the STS test.

measure is the test measure configuration. config is the test configuration. probe is the sensor probe. processor is the processor for analyzing sensor data. includeInstructions and includeResults control step inclusion.

Implementation

StsTestStep({
  required super.measure,
  required StsConfig super.config,
  required super.probe,
  required this.processor,
  super.includeInstructions = true,
  super.includeResults = true,
}) : super(identifier: 'sts_test') {
  final ySign = (config.sensorLocation == SensorLocation.chest) ? -1.0 : 1.0;
  realtimeProgressTracker = StsRealtimeProgressTracker(
    yThreshold: 1.5,
    ySign: ySign,
  );
  completer = CancelableCompleter<StsResult>();
}