-
-
Notifications
You must be signed in to change notification settings - Fork 509
Description
Describe the bug
TL;DR - the arguments to atan2( ) are inverted for Lateral Direction in the exported Sim Data.
I am working on a bash script to parse Exported Sim.csv data for GPS Driftcast.
I want several columns from the .csv file as events occur.
The Events are Apogee, Main Deployment, Ground Hit
The data I want is for GPS DC is:
Event, Altitude, Lateral Distance, Lateral Direction, Vertical Velocity, Position East Of Launch, Position North of Launch, Latitude and Longitude.
It appears that when Lateral Direction is calculated the ( x,y ) arguments for atan2( ) are swapped.
Easy to do ... been there, done that :)
I have not checked for other direction fields ...
Thanks !
-- kjh
To Reproduce
- Run Sim
- Export Data
- Check Lateral Direction using Position East of Launch and Position North of Launch.
- for Apogee at about 13 sec, if x = East = -201.00 and y = North = -449.00 then atan2( y, x ) = -2.72069 radians = -155.88 deg = 204.12 normalized deg
- OR reports -114.12 deg = 245.88 normalized deg
...
Screenshots / .ork file
Screenshot(s):
(drag-and-drop the screenshot(s) here)
.ork file:
*(drag-and-
drop the file here as a .zip file)*
screenshot of my q&d bash script results:
OpenRocket version
24.12 RC-01
What platform are you running on?
Linux
Additional context
No response