bug fixed滤波函数计算结果已经是mm,不用乘以10了

This commit is contained in:
weidong 2023-11-15 07:17:27 +08:00
parent 54946fc92c
commit f5be484563

View File

@ -101,9 +101,9 @@ public class GNSSDeviceLocationRecordServiceImpl implements GNSSDeviceLocationRe
} }
double[] avgEND = calcFilterLocation(locationRecord, filterCycle); double[] avgEND = calcFilterLocation(locationRecord, filterCycle);
if(avgEND!=null) { if(avgEND!=null) {
locationRecord.setRb562e(NumberUtils.scaleTwo(avgEND[0] * 10)); locationRecord.setRb562e(NumberUtils.scaleTwo(avgEND[0]));
locationRecord.setRb562n(NumberUtils.scaleTwo(avgEND[1] * 10)); locationRecord.setRb562n(NumberUtils.scaleTwo(avgEND[1]));
locationRecord.setRb562d(NumberUtils.scaleTwo(avgEND[2] * 10)); locationRecord.setRb562d(NumberUtils.scaleTwo(avgEND[2]));
} }
repository.insert(locationRecord); repository.insert(locationRecord);