GithubHelp home page GithubHelp logo

Comments (4)

giovaniceotto avatar giovaniceotto commented on May 16, 2024

Alright, I assigned this issue to myself. @Gui-FernandesBR, can you give me more context about this issue? An example of how and why this would can help me a lot.

The main problem I currently face is guaranteeing consistency. When the user enters an initialSolution, currently she/he must specify the valeu of the entire state vector: x, y, z, vx, vy, vz, e0, e1, e2, e3, w1, w2, w3.

To check if the rocket is still on the rail, whose start point is currently set by default to (0, 0, 0), we use the Pythagorean thereom and check if x**2 + y**2 + z**2 <= self.env.rL, where self.env.rL is the rail length.

That being said, if the user specifies a value of x or y different from 0, the value of z must be so that it is consistent with the rail inclination and heading. Otherwise, values for x, y and z can be consistent the the check mentioned above but inconsistent with the rail inclination and heading. The same goes for velocity, attitude and angular velocity. If they are not consistent with the rail, we can get result which do not respect reality.

I currently do not see an example for when this feature could be useful, so I would recommend we make it clear in the documentation that when the initialSolution argument is used, the rail phase is skipped.

from rocketpy.

giovaniceotto avatar giovaniceotto commented on May 16, 2024

Regarding initial launch position, this is not defined in the flight class, but rather in the Environment class, by setting latitude, longitude and elevation.

from rocketpy.

giovaniceotto avatar giovaniceotto commented on May 16, 2024

I believe comments from @Projeto-Jupiter/back-end regarding this issue can be specially important!

from rocketpy.

Gui-FernandesBR avatar Gui-FernandesBR commented on May 16, 2024

Ok now I understand what happened here, in the end we don't need to modify initialSolution argument.

In the future we will be able to modify lat/lon coordinates of the launch pad so this problem will be solved.
See #163 to more information

from rocketpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.