Skip to content

Commit

Permalink
small refactoring #12
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 29, 2024
1 parent 544010b commit a4a32bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2221,13 +2221,13 @@ MSVehicle::planMoveInternal(const SUMOTime t, MSLeaderInfo ahead, DriveItemVecto
std::cout << SIMTIME << " veh=" << getID() << " speedBeforeTraci=" << v;
}
#endif
v = myInfluencer->influenceSpeed(MSNet::getInstance()->getCurrentTimeStep(), v, v, vMin, maxV);
v = myInfluencer->influenceSpeed(t, v, v, vMin, maxV);
#ifdef DEBUG_TRACI
if (DEBUG_COND) {
std::cout << " influencedSpeed=" << v;
}
#endif
v = myInfluencer->gapControlSpeed(MSNet::getInstance()->getCurrentTimeStep(), this, v, v, vMin, maxV);
v = myInfluencer->gapControlSpeed(t, this, v, v, vMin, maxV);
#ifdef DEBUG_TRACI
if (DEBUG_COND) {
std::cout << " gapControlSpeed=" << v << "\n";
Expand Down Expand Up @@ -6168,7 +6168,6 @@ MSVehicle::updateBestLanes(bool forceRebuild, const MSLane* startLane) {
std::cout << SIMTIME << " veh=" << getID() << " bestCont=" << toString(getBestLanesContinuation()) << "\n";
}
#endif
return;
}


Expand Down

0 comments on commit a4a32bb

Please sign in to comment.