WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
planetdefaults.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16/*
17Planetary defaults header file
18
19Author: Alex Reynolds
20*/
21
22#ifndef SRC_UTILS_PLANETDEFAULTS_H
23#define SRC_UTILS_PLANETDEFAULTS_H
24
25#include <array>
26
27#include "configuration.h"
28
29namespace warpos {
32 char name[MAXIMUM_NAME_CHARS]; // The nominal name of the planet (i.e. "Earth")
33 floating_point eq_radius; // The equatorial radius defined for the planet
34 floating_point flattening; // The ellipsoidal flattening
35 floating_point mu; // The gravitational parameter for the planet
36 floating_point J2; // The J2 parameter for the planet
37 floating_point J3; // The J3 parameter for the planet
38 floating_point mean_ang_vel; // The mean (scalar) angular velocity of the planet
39 floating_point mean_gravity; // The mean gravity for the planet
40 };
41
51
52 extern std::array<PlanetDefaults*, 9> defined_planet_defaults;
53}
54
55#endif
Definition DeadReckon.cpp:20
PlanetDefaults jupiter_nasa
Definition planetdefaults.cpp:94
PlanetDefaults earth_wgs84
Definition planetdefaults.cpp:22
PlanetDefaults sun_nasa
Definition planetdefaults.cpp:46
PlanetDefaults moon_nasa
Definition planetdefaults.cpp:34
std::array< PlanetDefaults *, 9 > defined_planet_defaults
A single container to hold all defaults for searchability.
Definition planetdefaults.cpp:130
PlanetDefaults mars_nasa
Definition planetdefaults.cpp:82
PlanetDefaults neptune_nasa
Definition planetdefaults.cpp:118
PlanetDefaults uranus_nasa
Definition planetdefaults.cpp:106
PlanetDefaults mercury_nasa
Definition planetdefaults.cpp:58
PlanetDefaults venus_nasa
Definition planetdefaults.cpp:70
Contain all default values defined for a planet.
Definition planetdefaults.h:31
floating_point eq_radius
Definition planetdefaults.h:33
floating_point mean_gravity
Definition planetdefaults.h:39
floating_point flattening
Definition planetdefaults.h:34
floating_point J2
Definition planetdefaults.h:36
char name[MAXIMUM_NAME_CHARS]
Definition planetdefaults.h:32
floating_point mu
Definition planetdefaults.h:35
floating_point mean_ang_vel
Definition planetdefaults.h:38
floating_point J3
Definition planetdefaults.h:37