From 3520db208e039b6630f2bb4582257b437506965c Mon Sep 17 00:00:00 2001 From: Gordon McCann Date: Sat, 19 Feb 2022 11:33:21 -0500 Subject: [PATCH] Update NavProject to reflect changes --- NavProject/SPSAnalysisStage.cpp | 10 +++++----- NavProject/SPSAnalysisStage.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/NavProject/SPSAnalysisStage.cpp b/NavProject/SPSAnalysisStage.cpp index 7cbfef9..35be431 100644 --- a/NavProject/SPSAnalysisStage.cpp +++ b/NavProject/SPSAnalysisStage.cpp @@ -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); } diff --git a/NavProject/SPSAnalysisStage.h b/NavProject/SPSAnalysisStage.h index 5028966..1fdd8e1 100644 --- a/NavProject/SPSAnalysisStage.h +++ b/NavProject/SPSAnalysisStage.h @@ -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;