Skip to content

Mass reading errors from .ork file #3

@sanketdiwale

Description

@sanketdiwale

Hi Nathan,

I noticed a mismatch in the mass of the rocket and its components when reading a open rocket (.ork) file from the openrocketdoc interface and from OpenRocket-15.03.jar itself.

I have provided a minimal example below and attached the .ork file I was reading below.

Minimal Example

import openrocketdoc
from openrocketdoc import loaders
rocketloader = openrocketdoc.loaders.Openrocket()
rocket = rocketloader.load('StarterDesign.ork')
print("Rocket Mass:")
print(rocket.mass)

Example Output

Rocket Mass:
2.03641177398

Issue

If I open the file with the OpenRocket simulator version 15.03 that can be downloaded from
http://openrocket.sourceforge.net/download.html

I see that the mass of the rocket without motor is 2447 grams. Further if I check the mass of the nose cone component in open rocket it is 218 grams while in the openrocketdoc interface it is 0.

Question:

I was wondering if this is a bug or this is the expected behaviour. Further if I have components with overridden mass the loader does not see the overridden component mass either.

Is there some way by which I can get the correct component and rocket mass readings from the .ork file?

Thanks,
Sanket

.ork file attached:

StarterDesign.ork.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions