Rise
The Vieneo Province
Bus Class Reference

#include <Bus.h>

Collaboration diagram for Bus:
[legend]

Classes

struct  Afcs
 (25) Automatic Flight Control System (AFCS) modes and engagement status, including autothrottle; More...
 
struct  Gpws
 

Public Types

enum  MarkerBeaconTypes { None, Outer, Middle, Inner }
 (29) Marker beacon passage; More...
 
enum  TcasEnum {
  Clear_Of_Conflict = 0, Traffic_Advisory = 1, RA_Climb = 2, RA_Descend = 3,
  RA_Monitor_Climb = 4, RA_Monitor_Descent = 5
}
 

Public Member Functions

void AddCommand (Command command, bool onlyOne)
 
float GrossWeight () const noexcept
 
void FrameMove (float fElapsed)
 
 Bus (Logger *prmLogger)
 

Public Attributes

_SYSTEMTIME Time
 (1) Time (UTC when available, otherwise elapsed time) More...
 
float PressureAltitudeKm = 0.0f
 
float IndicatedAirspeedKms = 0.0f
 
float HeadingTrueDegrees = 0.0f
 
float HeadingMagneticDegrees = 0.0f
 
D3DXVECTOR3 NormalAcceleration = D3DXVECTOR3(0, 0, 0)
 
float PitchAttitudeRadians = 0.0f
 
float RollAttitudeRadians = 0.0f
 
float EngineThrustOutput [MAX_ENGINES]
 
float PitchTrimSurfacePositionDegrees = 0.0f
 
UINT flapSettingTE = 0
 
UINT flapSettingLE = 0
 
bool ThrustReverserCommand [MAX_ENGINES]
 
float StaticAirTemperatureCelsius = 0.0f
 
float OutsideAirTemperatureKelvin = 0.0f
 
float TotalAirTemperatureCelsius = 0.0f
 
float AirframeTemperatureCelsius = -1.0f
 
struct Bus::Afcs AFCS
 
float RadioAltitudeKm = cloudTopsMslC
 
float LocalizerDeviationRadians = 0.0f
 
float GlideslopeDeviationRadians = 0.0f
 
enum Bus::MarkerBeaconTypes MarkerBeacon = MarkerBeaconTypes::None
 
bool MasterWarning = false
 
bool OnGround = true
 
float AngleOfAttackRadians = 0.0f
 
float GroundSpeedKms = 0.0f
 
struct Bus::Gpws GPWS
 
float LandingGearExtended = 0.0f
 
float HeadingTrackDegrees = 0.0f
 
float WindDirectionDegrees = 0.0f
 
float WindSpeedMs = 0.0f
 
float WindUpdraftMs = 0.0f
 
float LatitudeDeg = 0.0f
 
float LongitudeDeg = 0.0f
 
float LatitudeRad = 0.0f
 
VECTOR2SHORT tcp
 
enum Bus::TcasEnum TCAS = TcasEnum::Clear_Of_Conflict
 
short TCASTargetOrdinal = -1
 
float EngineThrustLever [MAX_ENGINES]
 
float EngineThrustCommand [MAX_ENGINES]
 
bool IceDetected = false
 
float IceDetectorMm = 0.0f
 
bool IceDetectorHeat = false
 
float LeftBrake = 0.0f
 
float RightBrake = 0.0f
 
bool AntiIce = false
 
float CabinPressureMb = SeaLevelPressureMb
 
float PitchTrimScalar = 0.0f
 
float TrailingEdgeFlapsPosition = 0.0f
 
float LeadingEdgeFlapsPosition = 0.0f
 
bool YawDamperStatus = true
 
float YawDamperCommand = 0.0f
 
std::vector< CommandcommandStream
 
std::vector< Messagemessages
 
float TrueAirspeedKms = 0.0f
 
float VerticalSpeedKms = 0.0f
 
float FlightPathAngleRadians = 0.0f
 
float AirDensityScalar = 1.0f
 
float DynamicPressure = 0.0f
 
float LinearVelocityKms = 0.0f
 
float Mach = 0.0f
 
float SpeedOfSoundKms = 0.0f
 
float LocalTimeHours = 11.0f
 
float LocalTimeMinutes = 32.0f
 
float EmptyWeightLbs = 0.0f
 
float FuelWeightLbs = 0.0f
 
float FuelFlowKgh = 0.0f
 
float PayloadWeightLbs = 0.0f
 
unsigned short CargoBays [MAX_PODSPERSHIP]
 
double ProgramTime = 0.0
 
bool FlightFreeze = false
 
bool MasterCaution = false
 
bool ProximityAlert = false
 
short targetC
 
scanDb Scanner
 
float MapScaleInnerRingKm = 25
 
bool ComponentRcsRollFail = false
 
bool ComponentFcsRollFail = false
 
SAssayGrid assayGrid
 
float assayQuality = 0.0f
 
float assayProgressU = 0.0f
 
float assayProgressV = 0.0f
 
int WPtargetC
 
std::vector< Swaypoint > waypoint
 
D3DXVECTOR3 lastWaypointLocation = centerC
 
float TargetDistanceKm
 
char TimeToNextFix [6]
 
std::vector< Snode > nodes
 
bool turnByTurnDirty = false
 
unsigned char turnByTurnRoutingType = 0
 
float turnByTurnTotalDistanceMeters = -1.0f
 
float turnByTurnTotalTimeSeconds = -1.0f
 
float DebugFloat1 = 0.0f
 
float DebugFloat2 = 0.0f
 
float DebugFloat3 = 0.0f
 
float DebugFloat4 = 0.0f
 
float DebugFloat5 = 0.0f
 
float DebugFloat6 = 0.0f
 
float DebugFloat7 = 0.0f
 
float DebugFloat8 = 0.0f
 
float DebugFloat9 = 0.0f
 
D3DXVECTOR3 Debug1Vec3 = centerC
 
D3DXVECTOR3 Debug2Vec3 = centerC
 
char DebugString [MAX_PATH]
 
float DebugSoundReal
 
float DebugSoundFake
 
float DebugSoundBear
 
float DebugSoundClose
 
float DebugTurbidity
 
float DebugTurbulence
 
float DebugCeiling
 

Private Attributes

Loggerlogger
 

Detailed Description

Definition at line 16 of file Bus.h.

Member Enumeration Documentation

◆ MarkerBeaconTypes

(29) Marker beacon passage;

Enumerator
None 
Outer 
Middle 
Inner 

Definition at line 139 of file Bus.h.

◆ TcasEnum

Enumerator
Clear_Of_Conflict 
Traffic_Advisory 
RA_Climb 
RA_Descend 
RA_Monitor_Climb 
RA_Monitor_Descent 

Definition at line 243 of file Bus.h.

Constructor & Destructor Documentation

◆ Bus()

Bus::Bus ( Logger prmLogger)
explicit

Definition at line 47 of file Bus.cpp.

Member Function Documentation

◆ AddCommand()

void Bus::AddCommand ( Command  command,
bool  onlyOne 
)

Definition at line 3 of file Bus.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Bus::FrameMove ( float  fElapsed)

Definition at line 15 of file Bus.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GrossWeight()

float Bus::GrossWeight ( ) const
inlinenoexcept

Definition at line 366 of file Bus.h.

Member Data Documentation

◆ AFCS

struct Bus::Afcs Bus::AFCS

◆ AirDensityScalar

float Bus::AirDensityScalar = 1.0f

Definition at line 353 of file Bus.h.

◆ AirframeTemperatureCelsius

float Bus::AirframeTemperatureCelsius = -1.0f

Definition at line 69 of file Bus.h.

◆ AngleOfAttackRadians

float Bus::AngleOfAttackRadians = 0.0f

Definition at line 152 of file Bus.h.

◆ AntiIce

bool Bus::AntiIce = false

Definition at line 296 of file Bus.h.

◆ assayGrid

SAssayGrid Bus::assayGrid

Definition at line 385 of file Bus.h.

◆ assayProgressU

float Bus::assayProgressU = 0.0f

Definition at line 387 of file Bus.h.

◆ assayProgressV

float Bus::assayProgressV = 0.0f

Definition at line 387 of file Bus.h.

◆ assayQuality

float Bus::assayQuality = 0.0f

Definition at line 386 of file Bus.h.

◆ CabinPressureMb

float Bus::CabinPressureMb = SeaLevelPressureMb

Definition at line 307 of file Bus.h.

◆ CargoBays

unsigned short Bus::CargoBays[MAX_PODSPERSHIP]

Definition at line 365 of file Bus.h.

◆ commandStream

std::vector<Command> Bus::commandStream

Definition at line 342 of file Bus.h.

◆ ComponentFcsRollFail

bool Bus::ComponentFcsRollFail = false

Definition at line 383 of file Bus.h.

◆ ComponentRcsRollFail

bool Bus::ComponentRcsRollFail = false

Definition at line 382 of file Bus.h.

◆ Debug1Vec3

D3DXVECTOR3 Bus::Debug1Vec3 = centerC

Definition at line 417 of file Bus.h.

◆ Debug2Vec3

D3DXVECTOR3 Bus::Debug2Vec3 = centerC

Definition at line 418 of file Bus.h.

◆ DebugCeiling

float Bus::DebugCeiling

Definition at line 421 of file Bus.h.

◆ DebugFloat1

float Bus::DebugFloat1 = 0.0f

Definition at line 408 of file Bus.h.

◆ DebugFloat2

float Bus::DebugFloat2 = 0.0f

Definition at line 409 of file Bus.h.

◆ DebugFloat3

float Bus::DebugFloat3 = 0.0f

Definition at line 410 of file Bus.h.

◆ DebugFloat4

float Bus::DebugFloat4 = 0.0f

Definition at line 411 of file Bus.h.

◆ DebugFloat5

float Bus::DebugFloat5 = 0.0f

Definition at line 412 of file Bus.h.

◆ DebugFloat6

float Bus::DebugFloat6 = 0.0f

Definition at line 413 of file Bus.h.

◆ DebugFloat7

float Bus::DebugFloat7 = 0.0f

Definition at line 414 of file Bus.h.

◆ DebugFloat8

float Bus::DebugFloat8 = 0.0f

Definition at line 415 of file Bus.h.

◆ DebugFloat9

float Bus::DebugFloat9 = 0.0f

Definition at line 416 of file Bus.h.

◆ DebugSoundBear

float Bus::DebugSoundBear

Definition at line 420 of file Bus.h.

◆ DebugSoundClose

float Bus::DebugSoundClose

Definition at line 420 of file Bus.h.

◆ DebugSoundFake

float Bus::DebugSoundFake

Definition at line 420 of file Bus.h.

◆ DebugSoundReal

float Bus::DebugSoundReal

Definition at line 420 of file Bus.h.

◆ DebugString

char Bus::DebugString[MAX_PATH]

Definition at line 419 of file Bus.h.

◆ DebugTurbidity

float Bus::DebugTurbidity

Definition at line 421 of file Bus.h.

◆ DebugTurbulence

float Bus::DebugTurbulence

Definition at line 421 of file Bus.h.

◆ DynamicPressure

float Bus::DynamicPressure = 0.0f

Definition at line 354 of file Bus.h.

◆ EmptyWeightLbs

float Bus::EmptyWeightLbs = 0.0f

Definition at line 361 of file Bus.h.

◆ EngineThrustCommand

float Bus::EngineThrustCommand[MAX_ENGINES]

Definition at line 267 of file Bus.h.

◆ EngineThrustLever

float Bus::EngineThrustLever[MAX_ENGINES]

Definition at line 264 of file Bus.h.

◆ EngineThrustOutput

float Bus::EngineThrustOutput[MAX_ENGINES]

Definition at line 43 of file Bus.h.

◆ flapSettingLE

UINT Bus::flapSettingLE = 0

Definition at line 58 of file Bus.h.

◆ flapSettingTE

UINT Bus::flapSettingTE = 0

Definition at line 56 of file Bus.h.

◆ FlightFreeze

bool Bus::FlightFreeze = false

Definition at line 374 of file Bus.h.

◆ FlightPathAngleRadians

float Bus::FlightPathAngleRadians = 0.0f

Definition at line 352 of file Bus.h.

◆ FuelFlowKgh

float Bus::FuelFlowKgh = 0.0f

Definition at line 363 of file Bus.h.

◆ FuelWeightLbs

float Bus::FuelWeightLbs = 0.0f

Definition at line 362 of file Bus.h.

◆ GlideslopeDeviationRadians

float Bus::GlideslopeDeviationRadians = 0.0f

Definition at line 136 of file Bus.h.

◆ GPWS

struct Bus::Gpws Bus::GPWS

◆ GroundSpeedKms

float Bus::GroundSpeedKms = 0.0f

Definition at line 156 of file Bus.h.

◆ HeadingMagneticDegrees

float Bus::HeadingMagneticDegrees = 0.0f

Definition at line 31 of file Bus.h.

◆ HeadingTrackDegrees

float Bus::HeadingTrackDegrees = 0.0f

Definition at line 226 of file Bus.h.

◆ HeadingTrueDegrees

float Bus::HeadingTrueDegrees = 0.0f

Definition at line 30 of file Bus.h.

◆ IceDetected

bool Bus::IceDetected = false

Definition at line 274 of file Bus.h.

◆ IceDetectorHeat

bool Bus::IceDetectorHeat = false

Definition at line 276 of file Bus.h.

◆ IceDetectorMm

float Bus::IceDetectorMm = 0.0f

Definition at line 275 of file Bus.h.

◆ IndicatedAirspeedKms

float Bus::IndicatedAirspeedKms = 0.0f

Definition at line 27 of file Bus.h.

◆ LandingGearExtended

float Bus::LandingGearExtended = 0.0f

Definition at line 224 of file Bus.h.

◆ lastWaypointLocation

D3DXVECTOR3 Bus::lastWaypointLocation = centerC

Definition at line 392 of file Bus.h.

◆ LatitudeDeg

float Bus::LatitudeDeg = 0.0f

Definition at line 234 of file Bus.h.

◆ LatitudeRad

float Bus::LatitudeRad = 0.0f

Definition at line 235 of file Bus.h.

◆ LeadingEdgeFlapsPosition

float Bus::LeadingEdgeFlapsPosition = 0.0f

Definition at line 326 of file Bus.h.

◆ LeftBrake

float Bus::LeftBrake = 0.0f

Definition at line 289 of file Bus.h.

◆ LinearVelocityKms

float Bus::LinearVelocityKms = 0.0f

Definition at line 355 of file Bus.h.

◆ LocalizerDeviationRadians

float Bus::LocalizerDeviationRadians = 0.0f

Definition at line 135 of file Bus.h.

◆ LocalTimeHours

float Bus::LocalTimeHours = 11.0f

Definition at line 358 of file Bus.h.

◆ LocalTimeMinutes

float Bus::LocalTimeMinutes = 32.0f

Definition at line 359 of file Bus.h.

◆ logger

Logger* Bus::logger
private

Definition at line 18 of file Bus.h.

◆ LongitudeDeg

float Bus::LongitudeDeg = 0.0f

Definition at line 234 of file Bus.h.

◆ Mach

float Bus::Mach = 0.0f

Definition at line 356 of file Bus.h.

◆ MapScaleInnerRingKm

float Bus::MapScaleInnerRingKm = 25

Definition at line 381 of file Bus.h.

◆ MarkerBeacon

enum Bus::MarkerBeaconTypes Bus::MarkerBeacon = MarkerBeaconTypes::None

◆ MasterCaution

bool Bus::MasterCaution = false

Definition at line 375 of file Bus.h.

◆ MasterWarning

bool Bus::MasterWarning = false

Definition at line 148 of file Bus.h.

◆ messages

std::vector<Message> Bus::messages

Definition at line 345 of file Bus.h.

◆ nodes

std::vector<Snode> Bus::nodes

Definition at line 397 of file Bus.h.

◆ NormalAcceleration

D3DXVECTOR3 Bus::NormalAcceleration = D3DXVECTOR3(0, 0, 0)

Definition at line 34 of file Bus.h.

◆ OnGround

bool Bus::OnGround = true

Definition at line 150 of file Bus.h.

◆ OutsideAirTemperatureKelvin

float Bus::OutsideAirTemperatureKelvin = 0.0f

Definition at line 67 of file Bus.h.

◆ PayloadWeightLbs

float Bus::PayloadWeightLbs = 0.0f

Definition at line 364 of file Bus.h.

◆ PitchAttitudeRadians

float Bus::PitchAttitudeRadians = 0.0f

Definition at line 36 of file Bus.h.

◆ PitchTrimScalar

float Bus::PitchTrimScalar = 0.0f

Definition at line 316 of file Bus.h.

◆ PitchTrimSurfacePositionDegrees

float Bus::PitchTrimSurfacePositionDegrees = 0.0f

Definition at line 53 of file Bus.h.

◆ PressureAltitudeKm

float Bus::PressureAltitudeKm = 0.0f
Todo:
NEEDS TO BE INITIALIZED HERE?

Definition at line 25 of file Bus.h.

◆ ProgramTime

double Bus::ProgramTime = 0.0

Definition at line 373 of file Bus.h.

◆ ProximityAlert

bool Bus::ProximityAlert = false

Definition at line 376 of file Bus.h.

◆ RadioAltitudeKm

float Bus::RadioAltitudeKm = cloudTopsMslC

Definition at line 134 of file Bus.h.

◆ RightBrake

float Bus::RightBrake = 0.0f

Definition at line 289 of file Bus.h.

◆ RollAttitudeRadians

float Bus::RollAttitudeRadians = 0.0f

Definition at line 37 of file Bus.h.

◆ Scanner

scanDb Bus::Scanner

Definition at line 379 of file Bus.h.

◆ SpeedOfSoundKms

float Bus::SpeedOfSoundKms = 0.0f

Definition at line 357 of file Bus.h.

◆ StaticAirTemperatureCelsius

float Bus::StaticAirTemperatureCelsius = 0.0f

Definition at line 66 of file Bus.h.

◆ targetC

short Bus::targetC

Definition at line 378 of file Bus.h.

◆ TargetDistanceKm

float Bus::TargetDistanceKm

Definition at line 393 of file Bus.h.

◆ TCAS

enum Bus::TcasEnum Bus::TCAS = TcasEnum::Clear_Of_Conflict

◆ TCASTargetOrdinal

short Bus::TCASTargetOrdinal = -1

Definition at line 252 of file Bus.h.

◆ tcp

VECTOR2SHORT Bus::tcp

Definition at line 236 of file Bus.h.

◆ ThrustReverserCommand

bool Bus::ThrustReverserCommand[MAX_ENGINES]

Definition at line 61 of file Bus.h.

◆ Time

_SYSTEMTIME Bus::Time

(1) Time (UTC when available, otherwise elapsed time)

Definition at line 23 of file Bus.h.

◆ TimeToNextFix

char Bus::TimeToNextFix[6]

Definition at line 394 of file Bus.h.

◆ TotalAirTemperatureCelsius

float Bus::TotalAirTemperatureCelsius = 0.0f

Definition at line 68 of file Bus.h.

◆ TrailingEdgeFlapsPosition

float Bus::TrailingEdgeFlapsPosition = 0.0f

Definition at line 324 of file Bus.h.

◆ TrueAirspeedKms

float Bus::TrueAirspeedKms = 0.0f

Definition at line 348 of file Bus.h.

◆ turnByTurnDirty

bool Bus::turnByTurnDirty = false

Definition at line 398 of file Bus.h.

◆ turnByTurnRoutingType

unsigned char Bus::turnByTurnRoutingType = 0

Definition at line 399 of file Bus.h.

◆ turnByTurnTotalDistanceMeters

float Bus::turnByTurnTotalDistanceMeters = -1.0f

Definition at line 400 of file Bus.h.

◆ turnByTurnTotalTimeSeconds

float Bus::turnByTurnTotalTimeSeconds = -1.0f

Definition at line 401 of file Bus.h.

◆ VerticalSpeedKms

float Bus::VerticalSpeedKms = 0.0f

Definition at line 351 of file Bus.h.

◆ waypoint

std::vector<Swaypoint> Bus::waypoint

Definition at line 391 of file Bus.h.

◆ WindDirectionDegrees

float Bus::WindDirectionDegrees = 0.0f

Definition at line 229 of file Bus.h.

◆ WindSpeedMs

float Bus::WindSpeedMs = 0.0f

Definition at line 230 of file Bus.h.

◆ WindUpdraftMs

float Bus::WindUpdraftMs = 0.0f

Definition at line 231 of file Bus.h.

◆ WPtargetC

int Bus::WPtargetC

Definition at line 390 of file Bus.h.

◆ YawDamperCommand

float Bus::YawDamperCommand = 0.0f

Definition at line 336 of file Bus.h.

◆ YawDamperStatus

bool Bus::YawDamperStatus = true

Definition at line 333 of file Bus.h.


The documentation for this class was generated from the following files: