FlightGear next
yasim Namespace Reference

Functions

float abs (float f)
 
static void moveprop (SGPropertyNode *node, const std::string &prop, float target, float frac)
 
static float magnitudeUnit (const float *v, float *out)
 
bool gearCompression (const float(&ground)[4], const GearVector &compression, const float(&wheel_pos)[3], const GearVector(&wheel_axle), float wheel_radius, float tyre_radius, std::function< float()> bump_fn, float(&o_contact)[3], float &o_compression_distance_vertical, float &o_compression_norm)
 
bool gearCompressionOld (const float(&ground)[4], const GearVector &compression, const float(&pos)[3], std::function< float()> bump_fn, float(&o_contact)[3], float &o_compression_distance_vertical, float &o_compression_norm)
 
static float sqr (float a)
 
std::ostream & operator<< (std::ostream &out, Rotor &r)
 
std::ostream & operator<< (std::ostream &out, const Rotorpart &rp)
 
static float i2fu (unsigned int i)
 
static float i2fs (unsigned int i)
 
static float c2fu (unsigned char c)
 
static unsigned char f2cu (float f)
 
std::ostream & operator<< (std::ostream &os, const YASIM_VERSION &version)
 

Variables

static const std::vector< std::string > ControlNames
 keep this list in sync with the enum ControlType in ControlMap.hpp !
 
static const float YASIM_PI = 3.14159265358979323846
 
static const float DEG2RAD = YASIM_PI / 180.0
 
static const float maxGroundBumpAmplitude =0.4
 
static const float YASIM_PI2 = 3.14159265358979323846/2
 
static const float YASIM_PI2 = 3.14159265358979323846f/2
 
static const float HP2W = 745.7f
 
static const float CIN2CM = 1.6387064e-5f
 
static const float RPM2RADPS = 0.1047198f
 
const float pi =3.14159
 
float _help = 0
 
const float MAX_TURBULENCE = 20
 
const float BASE_RATE = 2.0
 
const double MAGNITUDE_EXP = 2.0
 
const int MEANINGFUL_GENS = 7
 
static unsigned int SBOX []
 
static const std::vector< std::string > VersionStrings
 
const float R = 287.058f
 
const float GAMMA = 1.4f
 

Function Documentation

◆ abs()

float yasim::abs ( float f)
inline

Definition at line 21 of file Airplane.cpp.

◆ c2fu()

static float yasim::c2fu ( unsigned char c)
inlinestatic

Definition at line 102 of file Turbulence.cpp.

◆ f2cu()

static unsigned char yasim::f2cu ( float f)
inlinestatic

Definition at line 103 of file Turbulence.cpp.

◆ gearCompression()

bool yasim::gearCompression ( const float(&) ground[4],
const GearVector & compression,
const float(&) wheel_pos[3],
const GearVector & wheel_axle,
float wheel_radius,
float tyre_radius,
std::function< float()> bump_fn,
float(&) o_contact[3],
float & o_compression_distance_vertical,
float & o_compression_norm )

Definition at line 203 of file Gear.cpp.

◆ gearCompressionOld()

bool yasim::gearCompressionOld ( const float(&) ground[4],
const GearVector & compression,
const float(&) pos[3],
std::function< float()> bump_fn,
float(&) o_contact[3],
float & o_compression_distance_vertical,
float & o_compression_norm )

Definition at line 393 of file Gear.cpp.

◆ i2fs()

static float yasim::i2fs ( unsigned int i)
inlinestatic

Definition at line 99 of file Turbulence.cpp.

◆ i2fu()

static float yasim::i2fu ( unsigned int i)
inlinestatic

Definition at line 96 of file Turbulence.cpp.

◆ magnitudeUnit()

static float yasim::magnitudeUnit ( const float * v,
float * out )
static

Definition at line 25 of file Gear.cpp.

◆ moveprop()

static void yasim::moveprop ( SGPropertyNode * node,
const std::string & prop,
float target,
float frac )
static

Definition at line 426 of file FGFDM.cpp.

◆ operator<<() [1/3]

std::ostream & yasim::operator<< ( std::ostream & os,
const YASIM_VERSION & version )

Definition at line 54 of file Version.cpp.

◆ operator<<() [2/3]

std::ostream & yasim::operator<< ( std::ostream & out,
const Rotorpart & rp )

Definition at line 576 of file Rotorpart.cpp.

◆ operator<<() [3/3]

std::ostream & yasim::operator<< ( std::ostream & out,
Rotor & r )

Definition at line 1352 of file Rotor.cpp.

◆ sqr()

static float yasim::sqr ( float a)
inlinestatic

Definition at line 31 of file Rotor.cpp.

Variable Documentation

◆ _help

float yasim::_help = 0

Definition at line 14 of file Rotorpart.cpp.

◆ BASE_RATE

const float yasim::BASE_RATE = 2.0

Definition at line 15 of file Turbulence.cpp.

◆ CIN2CM

const float yasim::CIN2CM = 1.6387064e-5f
static

Definition at line 7 of file PistonEngine.cpp.

◆ ControlNames

const std::vector<std::string> yasim::ControlNames
static

keep this list in sync with the enum ControlType in ControlMap.hpp !

Definition at line 25 of file ControlMap.cpp.

◆ DEG2RAD

const float yasim::DEG2RAD = YASIM_PI / 180.0
static

Definition at line 19 of file Gear.cpp.

◆ GAMMA

const float yasim::GAMMA = 1.4f

Definition at line 57 of file YASimAtmosphere.cpp.

◆ HP2W

const float yasim::HP2W = 745.7f
static

Definition at line 6 of file PistonEngine.cpp.

◆ MAGNITUDE_EXP

const double yasim::MAGNITUDE_EXP = 2.0

Definition at line 21 of file Turbulence.cpp.

◆ MAX_TURBULENCE

const float yasim::MAX_TURBULENCE = 20

Definition at line 9 of file Turbulence.cpp.

◆ maxGroundBumpAmplitude

const float yasim::maxGroundBumpAmplitude =0.4
static

Definition at line 20 of file Gear.cpp.

◆ MEANINGFUL_GENS

const int yasim::MEANINGFUL_GENS = 7

Definition at line 28 of file Turbulence.cpp.

◆ pi

const float yasim::pi =3.14159

Definition at line 29 of file Rotor.cpp.

◆ R

const float yasim::R = 287.058f

Definition at line 54 of file YASimAtmosphere.cpp.

◆ RPM2RADPS

const float yasim::RPM2RADPS = 0.1047198f
static

Definition at line 8 of file PistonEngine.cpp.

◆ SBOX

unsigned int yasim::SBOX[]
static

Definition at line 36 of file Turbulence.cpp.

◆ VersionStrings

const std::vector<std::string> yasim::VersionStrings
static
Initial value:
= {
"YASIM_VERSION_ORIGINAL",
"YASIM_VERSION_32",
"2017.2",
"2018.1",
"YASIM_VERSION_CURRENT",
}

Definition at line 17 of file Version.cpp.

◆ YASIM_PI

const float yasim::YASIM_PI = 3.14159265358979323846
static

Definition at line 18 of file Gear.cpp.

◆ YASIM_PI2 [1/2]

const float yasim::YASIM_PI2 = 3.14159265358979323846/2
static

Definition at line 9 of file Hook.cpp.

◆ YASIM_PI2 [2/2]

const float yasim::YASIM_PI2 = 3.14159265358979323846f/2
static

Definition at line 9 of file Launchbar.cpp.