copyWith method
Implementation
TiltSettings copyWith({
double? lenOnDegreeMm,
double? horizontalSwerveDeg,
double? verticalSwerveDeg,
double? thresholdMm,
double? maxParallelsDeviationDeg
}) {
return TiltSettings(
lenOnDegreeMm: lenOnDegreeMm ?? this.lenOnDegreeMm,
horizontalSwerveDeg: horizontalSwerveDeg ?? this.horizontalSwerveDeg,
verticalSwerveDeg: verticalSwerveDeg ?? this.verticalSwerveDeg,
thresholdMm: thresholdMm ?? this.thresholdMm,
maxParallelsDeviationDeg: maxParallelsDeviationDeg ?? this.maxParallelsDeviationDeg
);
}