|
@@ -360,7 +360,7 @@ void FSMUnit::arriveCheckLoop_Timeout(void)
|
|
|
double deltaY = localPositionNextY - localPositionY;
|
|
|
double distance = sqrt(deltaX*deltaX + deltaY*deltaY);
|
|
|
|
|
|
- if(distance > 1.0)
|
|
|
+ if(distance > 5.0)
|
|
|
{
|
|
|
emit sendPathPlanRequest(waitingStation.latitude,waitingStation.longitude);
|
|
|
}
|
|
@@ -387,8 +387,9 @@ void FSMUnit::arriveCheckLoop_Timeout(void)
|
|
|
double deltaX = localPositionNextX - localPositionX;
|
|
|
double deltaY = localPositionNextY - localPositionY;
|
|
|
double distance = sqrt(deltaX*deltaX + deltaY*deltaY);
|
|
|
+// std::cout<<"distance"<<distance<<std::endl;
|
|
|
|
|
|
- if(distance > 1.0)
|
|
|
+ if(distance > 5.0)
|
|
|
{
|
|
|
emit sendPathPlanRequest(maintainStation.latitude,maintainStation.longitude);
|
|
|
}
|
|
@@ -411,7 +412,7 @@ void FSMUnit::sendPathPlanRequest_Slot(double latitude,double longitude)
|
|
|
xodrDest.flon = longitude;
|
|
|
xodrDest.flat = latitude;
|
|
|
xodrDest.lane = 1;
|
|
|
- std::cout<<"current destination: "<<std::setprecision(12)<<longitude<<","<<latitude<<std::endl;
|
|
|
+// std::cout<<"current destination: "<<std::setprecision(12)<<longitude<<","<<latitude<<std::endl;
|
|
|
std::cout<<"send a path request"<<std::endl;
|
|
|
iv::modulecomm::ModuleSendMsg(shmXodrRequest.mpa,(char *)&xodrDest,sizeof(xodrobj)); ///< send request msg
|
|
|
}
|