|
@@ -207,8 +207,8 @@ int trace2vectormap::convert()
|
|
|
{
|
|
|
iv::vectormap::point xpoint;
|
|
|
xpoint = xvectorpoint[i];
|
|
|
- xpoint.bx = xpoint.bx + xparam.fDisLeft * sin(xpoint.fyaw - M_PI/2.0);
|
|
|
- xpoint.ly = xpoint.ly + xparam.fDisLeft * cos(xpoint.fyaw - M_PI/2.0);
|
|
|
+ xpoint.bx = xpoint.bx + xparam.fDisRight * sin(xpoint.fyaw - M_PI/2.0);
|
|
|
+ xpoint.ly = xpoint.ly + xparam.fDisRight * cos(xpoint.fyaw - M_PI/2.0);
|
|
|
xpoint.pid = npid;
|
|
|
npid++;
|
|
|
xvectorpoint.push_back(xpoint);
|
|
@@ -436,7 +436,7 @@ int trace2vectormap::convert()
|
|
|
0,0,0,0,
|
|
|
0,0,0,0,
|
|
|
1,xvectorlane[i].lcnt,xvectorlane[i].lno,0,
|
|
|
- xvectorlane[i].fspeed/3.6,xvectorlane[i].fspeed/3.6,0,0);
|
|
|
+ xvectorlane[i].fspeed/3.6,xvectorlane[i].fspeed/3.6,0,1);
|
|
|
xFileLane.write(strline);
|
|
|
}
|
|
|
xFileLane.close();
|