|
@@ -494,14 +494,16 @@ void iv::decition::BrainDecition::run() {
|
|
}
|
|
}
|
|
if((ServiceCarStatus.mbRunPause)||(navigation_data.size()<1)||(ServiceCarStatus.mnBocheComplete>0))
|
|
if((ServiceCarStatus.mbRunPause)||(navigation_data.size()<1)||(ServiceCarStatus.mnBocheComplete>0))
|
|
{
|
|
{
|
|
|
|
+ bool rundebug = ServiceCarStatus.mbRunPause;
|
|
ServiceCarStatus.mbBrainCtring = false;
|
|
ServiceCarStatus.mbBrainCtring = false;
|
|
|
|
+ std::cout<<"enter mbRunPause for butn %d"<<rundebug<<std::endl;
|
|
decition_gps->brake = 6;
|
|
decition_gps->brake = 6;
|
|
decition_gps->accelerator = -0.5;
|
|
decition_gps->accelerator = -0.5;
|
|
decition_gps->wheel_angle = 0;
|
|
decition_gps->wheel_angle = 0;
|
|
decition_gps->torque = 0;
|
|
decition_gps->torque = 0;
|
|
- decition_gps->mode = 0;
|
|
|
|
|
|
+ decition_gps->mode = 1;//0;//20211102,cxw
|
|
//decitionExecuter->executeDecition(decition_gps);
|
|
//decitionExecuter->executeDecition(decition_gps);
|
|
- ShareDecition(decition_gps); //apollo_fu 20200413 qudiaozhushi
|
|
|
|
|
|
+ ShareDecition(decition_gps); //apollo_fu 20200413 qudiaozhushi
|
|
ServiceCarStatus.mfAcc = decition_gps->accelerator;
|
|
ServiceCarStatus.mfAcc = decition_gps->accelerator;
|
|
ServiceCarStatus.mfWheel = decition_gps->wheel_angle;
|
|
ServiceCarStatus.mfWheel = decition_gps->wheel_angle;
|
|
ServiceCarStatus.mfBrake = decition_gps->brake;
|
|
ServiceCarStatus.mfBrake = decition_gps->brake;
|
|
@@ -1309,7 +1311,8 @@ void iv::decition::BrainDecition::ShareBrainstate(iv::brain::brainstate xbs)
|
|
|
|
|
|
void iv::decition::BrainDecition::UpdateHMI(const char *pdata, const int ndatasize)
|
|
void iv::decition::BrainDecition::UpdateHMI(const char *pdata, const int ndatasize)
|
|
{
|
|
{
|
|
- if(ndatasize < sizeof(iv::hmi::HMIBasic))return;
|
|
|
|
|
|
+// if(ndatasize < sizeof(iv::hmi::hmimsg))
|
|
|
|
+// return;
|
|
|
|
|
|
iv::hmi::hmimsg xhmimsg;
|
|
iv::hmi::hmimsg xhmimsg;
|
|
if(!xhmimsg.ParseFromArray(pdata,ndatasize))
|
|
if(!xhmimsg.ParseFromArray(pdata,ndatasize))
|
|
@@ -1322,6 +1325,8 @@ void iv::decition::BrainDecition::UpdateHMI(const char *pdata, const int ndatasi
|
|
if(xhmimsg.has_mbpause())
|
|
if(xhmimsg.has_mbpause())
|
|
{
|
|
{
|
|
ServiceCarStatus.mbRunPause = xhmimsg.mbpause();
|
|
ServiceCarStatus.mbRunPause = xhmimsg.mbpause();
|
|
|
|
+
|
|
|
|
+// std::cout<<"enter for butn %d "<<ServiceCarStatus.mbRunPause <<std::endl;
|
|
}
|
|
}
|
|
// ServiceCarStatus.mbRunPause = xhmimsg.mbpause();
|
|
// ServiceCarStatus.mbRunPause = xhmimsg.mbpause();
|
|
|
|
|