|
@@ -24,6 +24,8 @@ void * gpa ;
|
|
|
|
|
|
QTime gTime;
|
|
|
|
|
|
+bool gbPrintRaw = false;
|
|
|
+
|
|
|
|
|
|
namespace iv {
|
|
|
|
|
@@ -61,6 +63,16 @@ void Listencan0(const char * strdata,const unsigned int nSize,const unsigned int
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if(gbPrintRaw)
|
|
|
+ {
|
|
|
+ int i;
|
|
|
+ for(i=0;i<xmsg.rawmsg_size();i++)
|
|
|
+ {
|
|
|
+ const iv::can::canraw * praw = &(xmsg.rawmsg(i));
|
|
|
+ PrintCANRaw(praw);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
int nRtn = 0;
|
|
|
switch (iv::gVehicleType) {
|
|
|
case iv::GE3:
|
|
@@ -157,6 +169,7 @@ int main(int argc, char *argv[])
|
|
|
std::string strvehicletype = xp.GetParam("vehicletype","GE3");
|
|
|
std::string strmodulename = xp.GetParam("modulename","chassis"); //chassismsgname
|
|
|
std::string strchassismsgname = xp.GetParam("chassismsgname","chassis");
|
|
|
+ gbPrintRaw = xp.GetParam("PrintRaw",false);
|
|
|
|
|
|
iv::gVehicleType = iv::UNKNOWN;
|
|
|
if(strncmp(strvehicletype.data(),"GE3",255) == 0)
|