ScienceCommand constructor
ScienceCommand({ - double? carouselMotor,
- double? scoopMotor,
- double? subsurfaceMotor,
- PumpState? pumps,
- ServoState? funnel,
- ServoState? scoop,
- CarouselCommand? carousel,
- bool? calibrate,
- bool? stop,
- int? sample,
- ScienceState? state,
- Version? version,
})
Implementation
factory ScienceCommand({
$core.double? carouselMotor,
$core.double? scoopMotor,
$core.double? subsurfaceMotor,
PumpState? pumps,
ServoState? funnel,
ServoState? scoop,
CarouselCommand? carousel,
$core.bool? calibrate,
$core.bool? stop,
$core.int? sample,
ScienceState? state,
$0.Version? version,
}) {
final $result = create();
if (carouselMotor != null) {
$result.carouselMotor = carouselMotor;
}
if (scoopMotor != null) {
$result.scoopMotor = scoopMotor;
}
if (subsurfaceMotor != null) {
$result.subsurfaceMotor = subsurfaceMotor;
}
if (pumps != null) {
$result.pumps = pumps;
}
if (funnel != null) {
$result.funnel = funnel;
}
if (scoop != null) {
$result.scoop = scoop;
}
if (carousel != null) {
$result.carousel = carousel;
}
if (calibrate != null) {
$result.calibrate = calibrate;
}
if (stop != null) {
$result.stop = stop;
}
if (sample != null) {
$result.sample = sample;
}
if (state != null) {
$result.state = state;
}
if (version != null) {
$result.version = version;
}
return $result;
}