diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index 70621108..922633e2 100755 --- a/Projects/la_mojo/build +++ b/Projects/la_mojo/build @@ -2,10 +2,10 @@ #make clean -e "CFG=Debug" -make -e "CFG=Debug" -j6 +#make -e "CFG=Debug" -j6 -#make clean -e "CFG=Debug86" -#make -e "CFG=Debug86" -j4 +make clean -e "CFG=Debug86" +make -e "CFG=Debug86" -j2 #make clean -e "CFG=Release86" #make -e "CFG=Release86" -j4 diff --git a/lib/App/common/kernelEventFilterTrain.cpp b/lib/App/common/kernelEventFilterTrain.cpp index 4105b477..7f882f03 100644 --- a/lib/App/common/kernelEventFilterTrain.cpp +++ b/lib/App/common/kernelEventFilterTrain.cpp @@ -212,4 +212,9 @@ bool kernelEventFilterTrain::initFilter(){ bool kernelEventFilterTrain::stopFilter(){ m_bActive = false; return true; -}; \ No newline at end of file +}; + + +#ifdef SECOND_PEER_PORT + +#endif \ No newline at end of file diff --git a/lib/App/common/kernelEventFilterTrain.h b/lib/App/common/kernelEventFilterTrain.h index 2803e22f..290696b8 100644 --- a/lib/App/common/kernelEventFilterTrain.h +++ b/lib/App/common/kernelEventFilterTrain.h @@ -2,6 +2,7 @@ #define __KERNEL_EVENT_FILTER_TRAIN__ #include "kernelEventFilter.h" +#define SECOND_PEER_PORT 2020 typedef std::vector groupArray; @@ -14,7 +15,20 @@ typedef struct S_EFT_ZONE { float endAngle; } EFT_ZONE; +#ifdef SECOND_PEER_PORT +/* + Other Sensor Peer Helper - checking if the paired sensor module has train detection +*/ +class TrainFilterOSP_Helper: public basicThread{ + private: + uint8_t m_bStage; + protected: + public: + TrainFilterOSP_Helper(); + ~TrainFilterOSP_Helper(); +}; +#endif class kernelEventFilterTrain: public kernelEventFilter{ private: basicLogCollection * m_pLog; @@ -22,7 +36,10 @@ class kernelEventFilterTrain: public kernelEventFilter{ EFT_ZONE m_sUpperZone; EFT_ZONE m_sBottomZone; groupArray m_aUpperFIFO; - groupArray m_aBottomFIFO; + groupArray m_aBottomFIFO; +#ifdef SECOND_PEER_PORT + TrainFilterOSP_Helper * m_oOSP_Helper; +#endif public: explicit kernelEventFilterTrain( uint32_t id ); virtual ~kernelEventFilterTrain();