mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-09 02:23:57 +02:00
Fix retrograd movements and earth rotation
This commit is contained in:
parent
b4eb471eb1
commit
166a920fca
4 changed files with 49 additions and 31 deletions
|
@ -16,7 +16,7 @@ void CourseChange (std::string context, Ptr<const MobilityModel> position)
|
|||
{
|
||||
Vector pos = position->GetPosition ();
|
||||
Ptr<const Node> node = position->GetObject<Node> ();
|
||||
outfile << Simulator::Now () << "," << node->GetId () << "," << pos.x << "," << pos.y << "," << pos.z << "," << position->GetVelocity ().GetLength() << std::endl;
|
||||
outfile << Simulator::Now () << ":" << node->GetId () << ":" << pos.x << ":" << pos.y << ":" << pos.z << ":" << position->GetVelocity ().GetLength() << std::endl;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
@ -42,7 +42,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
outfile << "Time,Satellite,x,y,z,Speed" << std::endl;
|
||||
|
||||
Simulator::Stop (Minutes (60.0));
|
||||
Simulator::Stop (Hours (2.0));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue