Use default Time() constructor when initializing 0 time

This commit is contained in:
Eduardo Almeida
2024-11-08 18:01:06 +00:00
parent 3c706947a0
commit f77250cc92
81 changed files with 139 additions and 143 deletions

View File

@@ -254,7 +254,7 @@ main(int argc, char* argv[])
double vRx = vScatt / 2;
txMob = CreateObject<WaypointMobilityModel>();
rxMob = CreateObject<WaypointMobilityModel>();
Time nextWaypoint = Seconds(0.0);
Time nextWaypoint;
txMob->GetObject<WaypointMobilityModel>()->AddWaypoint(
Waypoint(nextWaypoint, Vector(maxAxisX / 2 - streetWidth / 2, 1.0, 1.5)));
nextWaypoint += Seconds((maxAxisY - streetWidth) / 2 / vTx);