Skip to content

Commit

Permalink
tweaking debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 5, 2024
1 parent cf9cab1 commit c309ff7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/microsim/devices/MSDispatch_Greedy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ MSDispatch_GreedyClosest::computeDispatch(SUMOTime now, const std::vector<MSDevi
closestTime = travelTime;
closest = res;
closestTaxi = taxi;
#ifdef DEBUG_DISPATCH
if (DEBUG_COND2(person)) std::cout << SIMTIME << " bestTaxi=" << taxi->getHolder().getID() << " bestRes=" << toString(res->persons)
<< " taxiPos=" << taxi->getHolder().getPositionOnLane() << " resFromPos=" << res->fromPos << " traveltime=" << time2string(travelTime) << " taxiWait=" << time2string(taxiWait) << "\n";
#endif
} else {
recheck = MIN2(recheck,
MAX2(now + myRecheckTime, res->pickupTime - closestTime - myRecheckSafety));
Expand Down

0 comments on commit c309ff7

Please sign in to comment.