StsTestStep constructor
StsTestStep({
- required StsMeasure measure,
- required StsConfig config,
- required MobilityProbe probe,
- required StsProcessor processor,
- bool includeInstructions = true,
- 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>();
}