1 #ifndef SZA_ANTENNA_CANBUS_CALTERTNEW_H
2 #define SZA_ANTENNA_CANBUS_CALTERTNEW_H
11 #include "carma/szautil/Angle.h"
26 class CalTertNew :
public CalTert {
48 TS_RX1CM_SELECTED = 5,
49 TS_RX3MM_SELECTED = 6,
50 TS_RX1MM_SELECTED = 7,
51 TS_MANUAL_POSITION = 8,
60 CS_WAIT_FOR_TERTIARY = 4,
69 std::string boardName,
76 virtual ~CalTertNew();
81 std::vector<carma::canbus::Message>
82 positionCalibrator(sza::util::CalPos::Pos position,
unsigned seq=0,
bool send=
true);
87 std::vector<carma::canbus::Message>
88 positionTertiary(sza::util::Rx::Id
id,
unsigned seq=0,
bool send=
true);
93 std::vector<carma::canbus::Message>
94 positionTertiary(sza::util::Angle position,
unsigned seq=0,
bool send=
true);
99 std::vector<carma::canbus::Message>
100 homeTertiary(
bool send=
true);
106 void registerTertiaryInPositionHandler(CAN_STATUS_MSG_HANDLER(*handler),
107 void* arg1,
unsigned arg2);
109 static TertState rxIdToTertState(sza::util::Rx::Id rxId);
113 CalState expectedCalState_;
114 sza::util::Mutex calStateGuard_;
115 unsigned lastReqCalStateSeq_;
116 unsigned lastAckCalStateSeq_;
118 TertState expectedTertState_;
119 sza::util::Mutex tertStateGuard_;
120 unsigned lastReqTertStateSeq_;
121 unsigned lastAckTertStateSeq_;
123 short expectedTertPos_;
124 sza::util::Mutex tertPosGuard_;
125 unsigned lastReqTertPosSeq_;
126 unsigned lastAckTertPosSeq_;
134 unsigned char tertState_;
139 void registerDone(
unsigned& req,
unsigned& ack);
148 std::map<carma::canbus::msgType, std::string>
149 getHalfSecMonitors()
const;
156 void processBlankingFrameMonitor1(std::vector<carma::canbus::byteType>&
162 void processBlankingFrameMonitor2(std::vector<carma::canbus::byteType>&
168 void processBlankingFrameMonitor3(std::vector<carma::canbus::byteType>&
174 void processBlankingFrameMonitor4(std::vector<carma::canbus::byteType>&
180 void processBlankingFrameMonitor5(std::vector<carma::canbus::byteType>&
190 enum engineeringCommands
192 ENGCMD_POS_CAL = 0x080,
193 ENGCMD_SELECT_RX = 0x081,
194 ENGCMD_POS_TERT = 0x082,
195 ENGCMD_HOME_TERT = 0x083
200 MirPos rxIdToMirPos(sza::util::Rx::Id rxId);
215 #endif // End #ifndef SZA_ANTENNA_CANBUS_CALTERTNEW_H
Started: Fri Nov 21 15:46:44 UTC 2003.
AntennaRx class will handle all receiver functions.
unsigned short nodeType
Carma Node Type id type.
Tagged: Thu Jun 17 20:58:48 UTC 2004.
An instance of this class is created by AntennaMaster and passed to the constructors of other tasks...