mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Fix fallback to hardcoded orbits
If orbitFile was defined a fallback was made to hardcoded orbits.
This commit is contained in:
parent
9af4e0df72
commit
0a7f41818d
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ int main(int argc, char *argv[])
|
|||
CommandLine cmd;
|
||||
std::string orbitFile;
|
||||
std::string traceFile;
|
||||
double duration = 60;
|
||||
std::string duration = "60s";
|
||||
cmd.AddValue("orbitFile", "CSV file with orbit parameters", orbitFile);
|
||||
cmd.AddValue("traceFile", "CSV file to store mobility trace in", traceFile);
|
||||
cmd.AddValue("precision", "ns3::LeoCircularOrbitMobilityModel::Precision");
|
||||
|
@ -47,7 +47,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
LeoOrbitNodeHelper orbit;
|
||||
NodeContainer satellites;
|
||||
if (orbitFile.empty())
|
||||
if (!orbitFile.empty())
|
||||
{
|
||||
satellites = orbit.Install (orbitFile);
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
std::cout << "Time,Satellite,x,y,z,Speed" << std::endl;
|
||||
|
||||
Simulator::Stop (Seconds (duration));
|
||||
Simulator::Stop (Time (duration));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue