Giter Club home page Giter Club logo

hohmann-transfer-orbit-tianwen's Introduction

English | 简体中文

Hohmann transfer orbit Tianwen-1

👽👽👽 Use python to simulate the Hohmann transfer orbit of Tianwen-1 👽👽👽

This project belongs to OGWW

The Tianwen-1 Mars Rover from Earth to Mars uses an improved hohmann transfer orbit (fast transfer orbit), starting from the earth, The focus is on the elliptical trajectory on a straight line from the earth at the time of departure to Mars at the time of arrival.

Example

Get Start 🚀

$ python3 hohmann.py

For a better experience, please use python3.6 or above.

Introduction

Ideas for drawing an elliptical orbit:

  1. According to NASA JPL Horizons, we can get the current planetary trajectory and position data, so based on the daily position data, we can establish Mars and the earth The coordinate position.
# Earth/starting point
AX = 0.5293788380171227
AY = -0.8669958827267433
  1. The long axis of the fast transfer orbit is still on the same straight line as the standard one, and then an elliptic curve is simulated, where the intersection with the orbit of Mars is at the coordinates near February 11, 2021. So based on this, the center, major axis, and minor axis of the ellipse can be determined.
# Difference between two coordinates
height = abs(AY-BY)
width = abs(AX-BX)

# Ellipse included angle
angle = math.atan(width/height) * 180 / math.pi

# 2a Long shaft length
aFull = math.sqrt(pow(abs(AX-BX), 2) + pow(abs(AY-BY), 2))

# Slope b=0
k = (AY-BY)/(AX-BX)

# Ellipse center coordinates
centerX = (AX+BX)/2
centerY = k*centerX
  1. Use the elliptic equation and the one-dimensional quadratic equation to solve all the coordinate points on the curve.

To do: The distance between the two points on the X axis of the generated point coordinates and the corresponding ellipse arc lengths should be equal, so as to ensure a uniform speed. But this will be more troublesome to implement (currently only roughly divide the interval).

You can also visit https://www.ogww.com/tianwen-1 for more project details.

hohmann-transfer-orbit-tianwen's People

Contributors

elliottssu avatar

Watchers

James Cloos avatar

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.