1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2024-11-22 18:28:52 -05:00

Update NavProject to reflect changes

This commit is contained in:
Gordon McCann 2022-02-19 11:33:21 -05:00
parent 6dd5f7f1c6
commit 3520db208e
2 changed files with 6 additions and 6 deletions

View File

@ -9,19 +9,19 @@ namespace Navigator {
SPSAnalysisStage::~SPSAnalysisStage() {}
void SPSAnalysisStage::AnalyzeRawPhysicsEvent(const RawPhysicsEvent& event)
void SPSAnalysisStage::AnalyzePhysicsEvent(const NavEvent& event)
{
for(auto& hit : event)
{
if(hit.board == 8 && hit.channel == 8)
if(hit.id == 136)
delayFLTime.SetValue(hit.timestamp/1.0e3);
else if(hit.board == 8 && hit.channel == 9)
else if(hit.id == 137)
delayFRTime.SetValue(hit.timestamp/1.0e3);
else if(hit.board == 8 && hit.channel == 10)
else if(hit.id == 138)
delayBLTime.SetValue(hit.timestamp/1.0e3);
else if(hit.board == 8 && hit.channel == 11)
else if(hit.id == 139)
delayBRTime.SetValue(hit.timestamp/1.0e3);
}

View File

@ -8,7 +8,7 @@ namespace Navigator {
SPSAnalysisStage();
virtual ~SPSAnalysisStage();
virtual void AnalyzeRawPhysicsEvent(const RawPhysicsEvent& event) override;
virtual void AnalyzePhysicsEvent(const NavEvent& event) override;
private:
NavParameter delayFLTime;