mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-22 07:02:29 +00:00
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:
parent
e52701353a
commit
21b4bc130d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user