Skip to content

[Bug] OR > [Plot / Export] > [Export Data] > Lateral Direction is Incorrect #2811

@kjhambrick

Description

@kjhambrick

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

  1. Run Sim
  2. Export Data
  3. Check Lateral Direction using Position East of Launch and Position North of Launch.
  4. 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
  5. OR reports -114.12 deg = 245.88 normalized deg
    ...

Screenshots / .ork file

Screenshot(s):

(drag-and-drop the screenshot(s) here)

tp-h128w-c50524-0400-or.csv

.ork file:

*(drag-and-

vul-48-2412-RC01.zip

drop the file here as a .zip file)*

screenshot of my q&d bash script results:

Image

OpenRocket version

24.12 RC-01

What platform are you running on?

Linux

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions