This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.animation as animation | |
from astropy.time import Time | |
from astroquery.jplhorizons import Horizons | |
sim_start_date = "2018-01-01" # simulating a solar system starting from this date | |
sim_duration = 2 * 365 # (int) simulation duration in days | |
m_earth = 5.9722e24 / 1.98847e30 # Mass of Earth relative to mass of the sun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ansiCRT; | |
(****************************************************************************** | |
This unit is emulating classic Pascal's CRT unit text color management and | |
cursor movement using ANSI Escape Code sequence. Keyboard input handling & | |
screen windowing is not possible. For keyboard input, better use the FPC's | |
Keyboard unit. | |
ANSI Escape Code list taken from: | |
https://en.wikipedia.org/wiki/ANSI_escape_code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _ESCAPE_CODE_H_ | |
#define _ESCAPE_CODE_H_ | |
#include <stdio.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#define ESC "\033" | |
#define ESC_CSI ESC "[" |