Skip to content

Instantly share code, notes, and snippets.

View amyinorbit's full-sized avatar

Amy Parent amyinorbit

View GitHub Profile
#!/usr/bin/env python3
import numpy as np
from matplotlib import pyplot as plt
# Parachute data:
# http://www.laboratoridenvol.com/space/gnusoyuz/gnusoyuz.en.html
#
# Timings
# http://russianspaceweb.com/soyuz-ms-10.html#scenario
@amyinorbit
amyinorbit / crew_dragon_reentry.py
Created March 6, 2019 22:17
Basic 2D simulation of lifting body spacecraft reentry
#!/usr/bin/env python3
import numpy as np
from matplotlib import pyplot as plt
import matplotlib
### 130m/s deorbit burn from a 410km*410km orbit ###
#
# periapsis: -31.87 km
# speed at EI: 7870.71 m/s
//
// main.cpp
// formatter
//
// Created by Amy Parent on 12/10/2019.
// Copyright © 2019 Amy Parent. All rights reserved.
//
#include <iostream>
#include <fstream>
@amyinorbit
amyinorbit / nav_utils.c
Last active February 17, 2022 11:13
Basic functions needed to compute along- and cross-track error, using acfutils
//===--------------------------------------------------------------------------------------------===
// nav_utils.c - navigation utilities using acfutils
//
// Created by Amy Parent <amy@amyparent.com>
// Copyright (c) 2022 Amy Parent
// Licensed under the MIT License
//===--------------------------------------------------------------------------------------------===
#include <acfutils/geom.h>
#include <acfutils/assert.h>