Bearing localiser offline save

Bug stopping it correctly saving data from the offline task to the
database fixed.
This commit is contained in:
Douglas Gillespie 2023-11-10 18:08:31 +00:00
parent 7a44d49e27
commit d5f504dcd1
4 changed files with 8 additions and 3 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.pamguard</groupId>
<artifactId>Pamguard</artifactId>
<version>2.02.09b</version>
<version>2.02.09c</version>
<name>Pamguard Java12+</name>
<description>Pamguard for Java 12+, using Maven to control dependcies</description>
<url>www.pamguard.org</url>

View File

@ -31,12 +31,12 @@ public class PamguardVersionInfo {
* Version number, major version.minorversion.sub-release.
* Note: can't go higher than sub-release 'f'
*/
static public final String version = "2.02.09b";
static public final String version = "2.02.09c";
/**
* Release date
*/
static public final String date = "29 June 2023";
static public final String date = "10 November 2023";
// /**
// * Release type - Beta or Core

View File

@ -22,6 +22,7 @@ public class BLOfflineTask extends OfflineTask {
this.bearingLocaliserControl = bearingLocaliserControl;
bearingProcess = bearingLocaliserControl.getBearingProcess();
this.addRequiredDataBlock(rawOrFFTBlock = bearingProcess.getParentDataBlock());
addAffectedDataBlock(detectionBlock);
// PamDataBlock detectionSource = bearingLocaliserControl.getDetectionMonitor().getParentDataBlock();
// this.setParentDataBlock(detectionSource);
// setParentDataBlock(bearingProcess.getParentDataBlock());

View File

@ -26,6 +26,10 @@ public class Group3DOfflineTask extends OfflineTask<PamDataUnit>{
this.group3DControl = group3DControl;
group3DProcess = group3DControl.getGroup3dProcess();
addAffectedDataBlock(group3DProcess.getGroup3dDataBlock());
PamDataBlock parentData = group3DProcess.getParentDataBlock();
if (parentData != null) {
this.addRequiredDataBlock(parentData);
}
}
@Override