YSFlight Coordinate Systems
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
YSFlight Coordinate Systems
I saved the flight to a .yfs file and noticed something interesting. The position coordinates showed my increasing z axis position, while the -200 x axis coordinate stayed relative constant until I started to turn to the left and got more negative x axis coordinate.
Does anyone know why this coordinate switching happens? If the in-game coordinate system is correct, then It is not a true Cartesian system (y-axis is flipped), but in Scenery Editor, it is a true Cartesian system.
I also learned that the Rotation sections of the .yfs file is Compass heading (+ between N-W-S and - btwn N-E-S), Horizon (+ up, -down), and bank angle (+ left wing down, - right wing down)
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: YSFlight Coordinate Systems
I have experienced this as well and thus there are negation multiplications in OYS code to correct.
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: YSFlight Coordinate Systems
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Coordinate Systems
This will slightly complicate the vector coordinate system rotation, but nothing too bad. My only problem will probably be to get VBA to do vector multiplication quickly enough to analyze >10000 time slices in a reasonable amount of time.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: YSFlight Coordinate Systems
No that's probably just me being derpy haha.Patrick31337 wrote:I wonder if this is related to wind headings that are 180° opposite of what is inputted in OYS.
Is the wind going FROM heading when it's supposed to be TO or vice versa? I can fix that quickly...
- decaff_42
- Staff
- Posts: 3838
- Joined: Sat Oct 29, 2011 7:23 pm
- Favorite Aircraft: SR-71 Blackbird
- Location: Eastern United States
- OS: Mac OSX
- Has thanked: 844 times
- Been thanked: 1726 times
- Contact:
Re: YSFlight Coordinate Systems
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories
YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: YSFlight Coordinate Systems
- Neocon
- First Class Membership
- Posts: 3955
- Joined: Wed Oct 19, 2011 5:01 am
- Favorite Aircraft: Baron 58
- Location: Tennessee
- OS: Win 10
- Has thanked: 1769 times
- Been thanked: 1810 times
- Contact:
Re: YSFlight Coordinate Systems
This is very confusing to me, as well, even after long talks with Turbofan about the matter. Wind direction is the heading from which the wind is blowing.OfficerFlake wrote:Is the wind going FROM heading when it's supposed to be TO or vice versa?
Currently, if I set the wind in OYS to 270, the wind comes from the east and will blow a hovering helicopter toward 270. The wind heading should blow the helicopter the opposite direction of the direction reported by /weather.
- Flake
- VFA-49
- Posts: 4375
- Joined: Thu Feb 10, 2011 8:47 pm
- Favorite Aircraft: Boeing F/A-18A
- Location: Australia
- OS: Windows 10 (x64)
- Has thanked: 861 times
- Been thanked: 1279 times
- Contact:
Re: YSFlight Coordinate Systems
Who is online
Users browsing this forum: No registered users and 4 guests