Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I get the gps points of the trajectory? #4

Open
DragonSongjg opened this issue Dec 20, 2019 · 4 comments
Open

Can I get the gps points of the trajectory? #4

DragonSongjg opened this issue Dec 20, 2019 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@DragonSongjg
Copy link

I want to use the simulated trajectory data to mining. Is there any trained model I could use? Can I get the gps points of the trajectory?

@DragonSongjg
Copy link
Author

Can the existed methods to control a plane complete a trajectory without the take-off and landing?

@adderbyte
Copy link
Owner

Hi,
Yes, you can get GPS points of the trajectory .

  1. The trajectories are returned as model state parameters. If you could get someone to fly while you collect the parameters by starting the program, such parameters could help modelling and mining.
  2. The take-off and landing scenario have not been included, though you could configure them as well. The present scenario involves keeping heading : that is keeping a straight line trajectory without the landing or take-off part.

I hope this answers your questions!

Best regards.

@DragonSongjg
Copy link
Author

DragonSongjg commented Dec 22, 2019

Thanks for your reply. It helps a lot.
I need trajectory data shaped like circle and 8 without the landing and take-off.
Is there any way I can use the simulator to get a large number of this kind of trajectories?

Hope for your reply
Best wishes

@adderbyte
Copy link
Owner

adderbyte commented Dec 23, 2019

Hi,
If you mean the trajectories data. Then you need to first create a scenario that describe the trajectory
you want. The trajectory data will be collected using human pilot or auotpilot and you can collect a large number of those. Below I highlight the steps to create a flight trajectory:

1.
A flight planner would be helpful. Even for the simple keep heading scenario a flight planner was used. This helps define a trajectory course for the aircraft. The flight plan is loaded into the flight management system: such that if the system deviates from the flight plan you
penalize it : this is the logic for the present configuration

2.
To achieve (1) I downloaded a real flight path (waypoints) as prepared by professional pilots
on [SkyVector] (https://skyvector.com/). I edited it to leave out the take off airport and landing so
that only the intermediate points are reflected (that defines a straight line path).

3.
I converted the flight path into a usable .fms file on this website [ConvertFlighWare] (https://x-planetools.com/fltawareparser.html). The result is what you have on my reporsitory here https://github.com/adderbyte/GYM_XPLANE_ML/blob/master/gym_xplane_final_version/flightPlan.fms

4.
The .fms file is then loaded into X-Plane/Output/FMS. Note if you choose a particular airport area in xplane then you should choose a corresponding flight plan within that area on skyvector and delete the waypoints you do not want

5.
Now you could follow the same step to create a trajectory plan with circle or 8 . Note that it is after creating this trajectory that you could then get parameters from a human pilot that follows the trajectory or by using the autopilot option.

Lastly, I came up with the above steps just to fulfill the project requirement. My knowledge of flight operations is grossly inadequate: but the steps above satisfied my needs. A better place to get general information and even professional pilot input would be the Xplane forum : https://forums.x-plane.org/index.php?/forums/&_fromLogout=1

Enjoy! I hope this helps.
Best regards,

@adderbyte adderbyte added the help wanted Extra attention is needed label Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants