mirror of
https://github.com/gwm17/Specter.git
synced 2024-11-26 20:28:49 -05:00
Update NavProject to reflect changes
This commit is contained in:
parent
6dd5f7f1c6
commit
3520db208e
|
@ -9,19 +9,19 @@ namespace Navigator {
|
||||||
|
|
||||||
SPSAnalysisStage::~SPSAnalysisStage() {}
|
SPSAnalysisStage::~SPSAnalysisStage() {}
|
||||||
|
|
||||||
void SPSAnalysisStage::AnalyzeRawPhysicsEvent(const RawPhysicsEvent& event)
|
void SPSAnalysisStage::AnalyzePhysicsEvent(const NavEvent& event)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
for(auto& hit : event)
|
for(auto& hit : event)
|
||||||
{
|
{
|
||||||
if(hit.board == 8 && hit.channel == 8)
|
if(hit.id == 136)
|
||||||
delayFLTime.SetValue(hit.timestamp/1.0e3);
|
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);
|
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);
|
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);
|
delayBRTime.SetValue(hit.timestamp/1.0e3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace Navigator {
|
||||||
SPSAnalysisStage();
|
SPSAnalysisStage();
|
||||||
virtual ~SPSAnalysisStage();
|
virtual ~SPSAnalysisStage();
|
||||||
|
|
||||||
virtual void AnalyzeRawPhysicsEvent(const RawPhysicsEvent& event) override;
|
virtual void AnalyzePhysicsEvent(const NavEvent& event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
NavParameter delayFLTime;
|
NavParameter delayFLTime;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user