Hydrophone data loading

Change how hydrophone data are loaded in viewer. Don't load ALL data.
Load the loading period + some before the load period which will be one
minute of data PLUS an extra n*2 data before that extra minute where n
is the number of hydrophones.
This commit is contained in:
Douglas Gillespie 2024-02-09 11:53:35 +00:00
parent e52701353a
commit 21b4bc130d
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class HydrophoneDataBlock extends PamDataBlock<HydrophoneDataUnit> {
*/ */
@Override @Override
public int getNumRequiredBeforeLoadTime() { public int getNumRequiredBeforeLoadTime() {
return ArrayManager.getArrayManager().getCurrentArray().getHydrophoneCount(); return ArrayManager.getArrayManager().getCurrentArray().getHydrophoneCount()*2;
} }

View File

@ -3,6 +3,7 @@ package Array;
import pamScrollSystem.AbstractScrollManager; import pamScrollSystem.AbstractScrollManager;
import PamUtils.PamCalendar; import PamUtils.PamCalendar;
import PamView.symbol.StandardSymbolManager; import PamView.symbol.StandardSymbolManager;
import PamguardMVC.PamConstants;
import PamguardMVC.PamDataBlock; import PamguardMVC.PamDataBlock;
import PamguardMVC.PamProcess; import PamguardMVC.PamProcess;
@ -42,7 +43,7 @@ public class HydrophoneProcess extends PamProcess{
@Override @Override
public void addOutputDataBlock(PamDataBlock outputDataBlock){ public void addOutputDataBlock(PamDataBlock outputDataBlock){
AbstractScrollManager.getScrollManager().addToSpecialDatablock(outputDataBlock); AbstractScrollManager.getScrollManager().addToSpecialDatablock(outputDataBlock, 60000, 0);
super.addOutputDataBlock(outputDataBlock); super.addOutputDataBlock(outputDataBlock);
} }