Extracting coordinates (x, y, z; longitude, latitude) after flight simulation

Hey, guys!

I use jMAVSim together with PX4 Autopilot and QGroundControl to simulate drone flights. All I want is to somehow obtain coordinate data for each timestamp of the flight to feed it into my ML algorithm.

Some other questions:

  • Is there a way to simulate a GPS spoofing attack on a drone?
  • Can I add more drones to the simulation?

Thanks, everyone!