Artemis Teensy Flight Software
The software on the Teensy in the Artemis cubesat.
Math library constants

Macros

#define RADOF(deg)   static_cast <double>(DTOR * (deg))
 Radians of a Degree value.
 
#define DEG2RAD(deg)   static_cast <double>(DTOR * (deg))
 Radians of a Degree value.
 
#define DEGOF(rad)   static_cast <double>(RTOD * (rad))
 Degrees of a Radian value.
 
#define RAD2DEG(rad)   (double)(RTOD * (rad))
 Degrees of a Radian value.
 
#define DIRECTION_ROW   0
 
#define DIRECTION_COLUMN   1
 
#define ESTIMATOR_SIZE   5
 

Enumerations

enum class  ByteOrder : std::uint8_t {
  BIGENDIAN =0 , PPC =ByteOrder::BIGENDIAN , MOTOROLA =ByteOrder::BIGENDIAN , LITTLEENDIAN =1 ,
  INTEL =ByteOrder::LITTLEENDIAN , NETWORK =ByteOrder::BIGENDIAN , NONE =2
}
 Enumeration of possible byte orders. More...
 

Variables

const double DPI =3.1415926535897932384626433832795028841971693993751
 Double precision PI.
 
const double D2PI =6.2831853071795864769252867665590057683943387987502
 Double precision 2*PI.
 
const double DPI2 =1.5707963267948966192313216916397514420985846996876
 Double precision PI/2.
 
const double D3PI2 =1.5*DPI
 Double precision 3*PI/2.
 
const double DS2R =7.2722052166430399038487115353692196393452995355905e-5
 Multiplicand for Seconds of Time to Radians.
 
const double DAS2R =4.8481368110953599358991410235794797595635330237270e-6
 Multiplicand for Seconds of Arc to Radians.
 
const double DTOR =static_cast <double>(DPI / 180.)
 Multiplicand for Degrees to Radians.
 
const double RTOD =static_cast <double>(180. / DPI)
 Multiplicand for Radians to Degrees.
 
const double O_UNDEFINED =999999.1
 
const double O_INFINITE =10000000000000000000000000.9
 
const double O_SMALL =0.00000001
 
const double D_SMALL =static_cast <double>(1e-76)
 

Detailed Description

Enumeration Type Documentation

◆ ByteOrder

enum ByteOrder : std::uint8_t
strong

Enumeration of possible byte orders.

Enumerator
BIGENDIAN 

Big Endian byte order.

PPC 

PowerPC byte order.

MOTOROLA 

Motorola byte order.

LITTLEENDIAN 

Little Endian byte order.

INTEL 

Intel byte order.

NETWORK 

Network byte order.