Changeset 4 in pacpussensors for trunk/CanGateway/CanGateway.cpp
- Timestamp:
- Jun 7, 2013, 12:10:00 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CanGateway/CanGateway.cpp
r2 r4 85 85 qFatal("Failed to open the CAN interface port %s in %s mode",port_, accessMode_); 86 86 } 87 else if (source_ == "igep") 88 { 89 canIf_.setSource(Win32CanInterface::igepCard); 90 // open interface 91 if (canIf_.openInterface(port_, accessMode_)==0) 92 qFatal("Failed to open the CAN interface port %s in %s mode",port_, accessMode_); 93 } 87 94 else 88 95 { … … 107 114 counter_ = 0; 108 115 canIf_.stop(); 109 if ((source_ == "vector")||(source_=="peak")||(source_=="vectorXL") )116 if ((source_ == "vector")||(source_=="peak")||(source_=="vectorXL")||(source_=="igep")) 110 117 canIf_.closeInterface(channel_); 111 118 canIf_.wait(); … … 182 189 setState(ComponentBase::MONITOR_OK); 183 190 184 //printf("id:%x\n",incomingCanFrames_[counter_].frame.id);191 // printf("id:%x\n",incomingCanFrames_[counter_].frame.id); 185 192 186 193 /* switch (incomingCanFrames_[counter_].frame.id)
Note:
See TracChangeset
for help on using the changeset viewer.