Commit e27caad8 authored by alexander's avatar alexander

speedx modify

parent a399bcfa
......@@ -124,7 +124,7 @@ double FusionObject::getHeading(double curLon, double curLat, double curSpeed)
double dist = jfx::GetDistance(mLastCalcuHeadingLon, mLastCalcuHeadingLat, curLon, curLat);
//if (dist < 3) {
if (dist < 3 || curSpeed <= 1.3) {
if (dist < 3 || curSpeed < 2.025) {
return mHeading;
}
......
......@@ -23,7 +23,7 @@ double TrafficObject::genHeading(double speedX, int steps/* = 10*/)
double dist = jfx::GetDistance(mLon, mLat, mLastCalcuHeadingLon, mLastCalcuHeadingLat);
//if (dist < 2) {
if(dist < 3.0 || speedX <=1.38){
if(dist < 3.0 || speedX < 2.025){
return mHeading;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment