|
|
@ -477,24 +477,12 @@ public class SamplesPreProcessModuleCtrlService implements HardwareCtrlModule { |
|
|
|
order = 1, |
|
|
|
beforeExecute="beforeActionExec" |
|
|
|
) |
|
|
|
public AppRet<A8kScanCurve> setAeroslFanPower(Boolean enable) throws HardwareException, InterruptedException { |
|
|
|
public void setAeroslFanPower(Boolean enable) throws HardwareException, InterruptedException { |
|
|
|
if (enable) { |
|
|
|
canBus.fanControlerSetSpeed(MId.WbTubeFanMod, 99); |
|
|
|
} else { |
|
|
|
canBus.fanControlerSetSpeed(MId.WbTubeFanMod, 0); |
|
|
|
} |
|
|
|
|
|
|
|
var chart = new A8kScanCurve(); |
|
|
|
chart.refCurve = List.of(40, 80, 120, 160, 200, 240); |
|
|
|
chart.refLine = new ArrayList<>(); |
|
|
|
chart.scanDataCurve = new ArrayList<>(); |
|
|
|
for ( int i=0; i<250; i++) { |
|
|
|
var num = (int) (Math.random() * 250); |
|
|
|
var offset = (int) (Math.random() * 50); |
|
|
|
chart.refLine.add(num); |
|
|
|
chart.scanDataCurve.add(num + offset); |
|
|
|
} |
|
|
|
return AppRet.success(chart); |
|
|
|
} |
|
|
|
|
|
|
|
public void beforeActionExec( Method method, List<Object> params ) { |
|
|
|