ScienceCommand constructor

ScienceCommand({
  1. double? carouselMotor,
  2. double? scoopMotor,
  3. double? subsurfaceMotor,
  4. PumpState? pumps,
  5. ServoState? funnel,
  6. ServoState? scoop,
  7. CarouselCommand? carousel,
  8. bool? calibrate,
  9. bool? stop,
  10. int? sample,
  11. ScienceState? state,
  12. 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,
  $2.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;
}