ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
planetdefaults.h
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 <string>
26#include <vector>
27
28namespace clockwerk {
29 /// @brief Contain all default values defined for a planet
30 struct PlanetDefaults {
31 const std::string name; // The nominal name of the planet (i.e. "Earth")
32 const double semimajor_axis; // The semimajor axis defined for the planet
33 const double flattening; // The ellipsoidal flattening 1/f
34 const double mu; // The gravitational parameter for the planet
35 const double J2; // The J2 parameter for the planet
36 const double J3; // The J3 parameter for the planet
37 const double mean_ang_vel; // The mean (scalar) angular velocity of the planet
38 const double mean_gravity; // The mean gravity for the planet
39 };
40
41 extern PlanetDefaults earth_wgs84;
42
43 extern std::vector<PlanetDefaults*> defined_planet_defaults;
44}
45
46#endif
Contain all default values defined for a planet.
Definition planetdefaults.h:30