|
@@ -1309,7 +1309,7 @@ void iv::decition::BrainDecition::Updatev2x(const char *pdata, const int ndatasi
|
|
|
ServiceCarStatus.stationCmd.carMode=v2x_message.carmode();
|
|
|
|
|
|
qDebug("ServiceCarStatus.stationCmd.carMode:",ServiceCarStatus.stationCmd.carMode);
|
|
|
- givlog->debug("ServiceCarStatus.stationCmd.carMode:",ServiceCarStatus.stationCmd.carMode);
|
|
|
+ givlog->debug("brain_v2x","ServiceCarStatus.stationCmd.carMode:%d",ServiceCarStatus.stationCmd.carMode);
|
|
|
}
|
|
|
|
|
|
ServiceCarStatus.stationCmd.has_emergencyStop=v2x_message.has_emergencystop();
|
|
@@ -1318,7 +1318,7 @@ void iv::decition::BrainDecition::Updatev2x(const char *pdata, const int ndatasi
|
|
|
ServiceCarStatus.stationCmd.emergencyStop=v2x_message.emergencystop();
|
|
|
|
|
|
qDebug("ServiceCarStatus.stationCmd.emergencyStop:",ServiceCarStatus.stationCmd.emergencyStop);
|
|
|
- givlog->debug("ServiceCarStatus.stationCmd.emergencyStop:",ServiceCarStatus.stationCmd.emergencyStop);
|
|
|
+ givlog->debug("brain_v2x","ServiceCarStatus.stationCmd.emergencyStop:%d",ServiceCarStatus.stationCmd.emergencyStop);
|
|
|
}
|
|
|
|
|
|
ServiceCarStatus.stationCmd.has_stationStop=v2x_message.has_stationstop();
|
|
@@ -1327,19 +1327,22 @@ void iv::decition::BrainDecition::Updatev2x(const char *pdata, const int ndatasi
|
|
|
ServiceCarStatus.stationCmd.stationStop=v2x_message.stationstop();
|
|
|
|
|
|
qDebug("ServiceCarStatus.stationCmd.stationStop:",ServiceCarStatus.stationCmd.stationStop);
|
|
|
- givlog->debug("ServiceCarStatus.stationCmd.stationStop:",ServiceCarStatus.stationCmd.stationStop);
|
|
|
+ givlog->debug("brain_v2x","ServiceCarStatus.stationCmd.stationStop:%d",ServiceCarStatus.stationCmd.stationStop);
|
|
|
}
|
|
|
-
|
|
|
- ServiceCarStatus.stationCmd.stationTotalNum=v2x_message.stationid_size();
|
|
|
- for(int i=0;i++;i<ServiceCarStatus.stationCmd.stationTotalNum)
|
|
|
+ int num=v2x_message.stationid_size();
|
|
|
+ if(num>0)
|
|
|
{
|
|
|
- ServiceCarStatus.stationCmd.stationGps[i].gps_lat=v2x_message.stgps(v2x_message.stationid(i)).lat();
|
|
|
- ServiceCarStatus.stationCmd.stationGps[i].gps_lng=v2x_message.stgps(v2x_message.stationid(i)).lon();
|
|
|
+ ServiceCarStatus.stationCmd.stationTotalNum=num;
|
|
|
+ for(int i=0;i<ServiceCarStatus.stationCmd.stationTotalNum;i++)
|
|
|
+ {
|
|
|
+ ServiceCarStatus.stationCmd.stationGps[i].gps_lat=v2x_message.stgps(i).lat();
|
|
|
+ ServiceCarStatus.stationCmd.stationGps[i].gps_lng=v2x_message.stgps(i).lon();
|
|
|
|
|
|
- qDebug("stationGps: %d, lat: %.7f, lon: %.7f", v2x_message.stationid(i), ServiceCarStatus.stationCmd.stationGps[i].gps_lat, ServiceCarStatus.stationCmd.stationGps[i].gps_lng);
|
|
|
- givlog->debug("stationGps: %d, lat: %.7f, lon: %.7f",
|
|
|
- v2x_message.stationid(i),ServiceCarStatus.stationCmd.stationGps[i].gps_lat,
|
|
|
- ServiceCarStatus.stationCmd.stationGps[i].gps_lng);
|
|
|
+ qDebug("stationGps: %d, lat: %.7f, lon: %.7f", v2x_message.stationid(i), ServiceCarStatus.stationCmd.stationGps[i].gps_lat, ServiceCarStatus.stationCmd.stationGps[i].gps_lng);
|
|
|
+ givlog->debug("brain_v2x","stationGps: %d, lat: %.7f, lon: %.7f",
|
|
|
+ v2x_message.stationid(i),ServiceCarStatus.stationCmd.stationGps[i].gps_lat,
|
|
|
+ ServiceCarStatus.stationCmd.stationGps[i].gps_lng);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|