|
@@ -366,6 +366,17 @@ void iv::decition::BrainDecition::run() {
|
|
|
ServiceCarStatus.aocfDis = atof(aocfDis.data());
|
|
|
ServiceCarStatus.aocfTimes = atof(aocfTimes.data());
|
|
|
|
|
|
+
|
|
|
+ std::string angdebug = xp.GetParam("angDebug","0.0");
|
|
|
+ std::string tordebug = xp.GetParam("torqueDebug","0.0");
|
|
|
+ std::string brkdebug = xp.GetParam("brakeDebug","3");
|
|
|
+
|
|
|
+
|
|
|
+ ServiceCarStatus.ang_debug = atof(angdebug.data());
|
|
|
+ ServiceCarStatus.torque_or_acc = atof(tordebug.data());
|
|
|
+ ServiceCarStatus.brake = atof(brkdebug.data());
|
|
|
+
|
|
|
+
|
|
|
mstrmemmap_index = xp.GetParam("msg_mapindex","map_index");
|
|
|
|
|
|
|
|
@@ -436,7 +447,7 @@ void iv::decition::BrainDecition::run() {
|
|
|
decition_gps->angle_active = 0;//横向控制激活模式
|
|
|
decition_gps->angle_mode = 0; //横向控制激活,和上一条同时满足才执行横向请求角度
|
|
|
decition_gps->auto_mode = 0; //3为自动控制模式
|
|
|
- decition_gps->wheel_angle = 0;
|
|
|
+ decition_gps->wheel_angle = ServiceCarStatus.ang_debug;//0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -858,6 +869,7 @@ void iv::decition::BrainDecition::ShareDecition(iv::decition::Decition decition)
|
|
|
std::cout<<"===================shareDecition========================"<<std::endl;
|
|
|
std::cout<<" torque_st:"<<ServiceCarStatus.torque_st
|
|
|
<<" decideTorque:"<<decition->torque <<" decideBrake:"<<decition->brake
|
|
|
+ <<" decideAngle:"<<decition->wheel_angle
|
|
|
<<" decideAngActive:"<<decition->angle_active
|
|
|
<<" decideAutoMode:"<<decition->auto_mode
|
|
|
<<std::endl;
|