Rise
The Vieneo Province
Loading...
Searching...
No Matches
Gpws Class Reference

#include <Module.h>

Inheritance diagram for Gpws:
[legend]
Collaboration diagram for Gpws:
[legend]

Public Member Functions

 Gpws (Bus *prmBus, Logger *prmLogger, Viewscreen *prmViewscreen=nullptr)
void FrameMove (float fElapsedTime) override
Public Member Functions inherited from Module
 Module (Bus *prmBus)
virtual ~Module ()=default

Private Member Functions

void UpdateTerrainAwareness (float seconds)
void ScanTerrainAwareness (float seconds)
void Evaluate (float seconds)
void UpdatePredictiveWindshear (float seconds)
void ProcessControls (bool powered, bool airborne)
bool UpdateSelfTest (float seconds, bool powered, bool airborne)
void UpdateFaults ()
float ClearanceFloor ()

Private Attributes

Logger * logger = nullptr
Viewscreen * viewscreen = nullptr
RiseMath::Vector3 oldTerrainForward {}
bool terrainTrackValid = false
int terrainVehicle = -1
uint64_t terrainDataRevision = 0
float terrainVoiceSeconds = 7
Bus::Gpws::GpwsEnum lastTerrainVoice = Bus::Gpws::NoAlert
TerrainAwareness::AlertStability terrainStability
bool terrainRangeActive = false
float previousMapRange = 20
float secsincelast = 0.0f
float oldradioaltitude = 0.0f
bool mode3active = false
float mode3altitude = 0.0f
Reference oldReference = REF_ACLMODE
float oldIndicatedAirspeedKms = FLT_MAX
GpwsWindshear::Detector windshear
GpwsPredictiveWindshear::Detector predictiveWindshear
float predictiveWindVoiceSeconds = 4
bool mode5bactive = false
bool mode6pr = true
bool mode6retardArmed = false
float groundclose = 0.0f
float oldRadioAltitudeKm = 0.0f
bool reactiveReady = false
bool takeoffPhase = false
int reactiveVehicle = -1
float takeoffSeconds = 61
float previousVerticalKms = 0
unsigned altitudeCallouts = 0
GpwsBehavior::ClearanceHistory clearanceHistory
GpwsBehavior::BankFlightEnvelope bankFlightEnvelope
Bus::Gpws::GpwsEnum lastDeclutterAlert = Bus::Gpws::NoAlert
float lastDeclutterValue = 0
unsigned bankAnnouncements = 0
int testVehicle = -1
float testSeconds = 0
float mode2LatchSeconds = 0
float mode2LatchAltitude = 0
float lastFloorRadio = FLT_MAX
float lastFloorGeo = FLT_MAX
float lastAltitudeLoss = 0
float previousFieldHeight = FLT_MAX
float lastFloorHeight = 0
float fieldCalloutHeight = 0
unsigned mode3Announcements = 0
unsigned previousFaults = 0
unsigned previousDiscretes = 0
bool mode2WasWarning = false
bool floorValid = false

Additional Inherited Members

Public Attributes inherited from Module
float maxFrameSeconds = 0
Protected Attributes inherited from Module
Bus * bus

Detailed Description

Definition at line 42 of file Module.h.

Constructor & Destructor Documentation

◆ Gpws()

Gpws::Gpws ( Bus * prmBus,
Logger * prmLogger,
Viewscreen * prmViewscreen = nullptr )

@abstract Enhanced Ground Proximity Warning System

See also
http://www.smartcockpit.com/docs/EGPWS_MKVI_and_MKVIII.pdf Two or more alerts may be activated simultaneously, so a message priority is established. The following table reflects the priority for these message callouts. Messages at the top of the list will start before a lower priority queued message. Rise lets a spoken phrase finish; a change in alert state must not restart speech partway through a word.

Definition at line 47 of file GPWS.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ ClearanceFloor()

float Gpws::ClearanceFloor ( )
private

Definition at line 194 of file GpwsControls.cpp.

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

◆ Evaluate()

void Gpws::Evaluate ( float seconds)
private
Todo
Mode 6 V-Speeds? They are really more complicated than this because they change with weight and flap configuration and runway length and conditions
Todo
Todo
need to move them from IndicatedAirSpeed.cpp

Definition at line 68 of file GPWS.cpp.

Here is the caller graph for this function:

◆ FrameMove()

void Gpws::FrameMove ( float fElapsedTime)
overridevirtual

Implements Module.

Definition at line 52 of file GPWS.cpp.

Here is the call graph for this function:

◆ ProcessControls()

void Gpws::ProcessControls ( bool powered,
bool airborne )
private

Definition at line 24 of file GpwsControls.cpp.

Here is the caller graph for this function:

◆ ScanTerrainAwareness()

void Gpws::ScanTerrainAwareness ( float seconds)
private

Definition at line 31 of file TerrainAwareness.cpp.

Here is the caller graph for this function:

◆ UpdateFaults()

void Gpws::UpdateFaults ( )
private

Definition at line 83 of file GpwsControls.cpp.

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

◆ UpdatePredictiveWindshear()

void Gpws::UpdatePredictiveWindshear ( float seconds)
private

Definition at line 7 of file GpwsPredictiveWindshear.cpp.

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

◆ UpdateSelfTest()

bool Gpws::UpdateSelfTest ( float seconds,
bool powered,
bool airborne )
private

Definition at line 115 of file GpwsControls.cpp.

Here is the caller graph for this function:

◆ UpdateTerrainAwareness()

void Gpws::UpdateTerrainAwareness ( float seconds)
private

Definition at line 21 of file TerrainAwareness.cpp.

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

Member Data Documentation

◆ altitudeCallouts

unsigned Gpws::altitudeCallouts = 0
private

Definition at line 77 of file Module.h.

◆ bankAnnouncements

unsigned Gpws::bankAnnouncements = 0
private

Definition at line 82 of file Module.h.

◆ bankFlightEnvelope

GpwsBehavior::BankFlightEnvelope Gpws::bankFlightEnvelope
private

Definition at line 79 of file Module.h.

◆ clearanceHistory

GpwsBehavior::ClearanceHistory Gpws::clearanceHistory
private

Definition at line 78 of file Module.h.

◆ fieldCalloutHeight

float Gpws::fieldCalloutHeight = 0
private

Definition at line 86 of file Module.h.

◆ floorValid

bool Gpws::floorValid = false
private

Definition at line 88 of file Module.h.

◆ groundclose

float Gpws::groundclose = 0.0f
private

Definition at line 72 of file Module.h.

◆ lastAltitudeLoss

float Gpws::lastAltitudeLoss = 0
private

Definition at line 86 of file Module.h.

◆ lastDeclutterAlert

Bus::Gpws::GpwsEnum Gpws::lastDeclutterAlert = Bus::Gpws::NoAlert
private

Definition at line 80 of file Module.h.

◆ lastDeclutterValue

float Gpws::lastDeclutterValue = 0
private

Definition at line 81 of file Module.h.

◆ lastFloorGeo

float Gpws::lastFloorGeo = FLT_MAX
private

Definition at line 85 of file Module.h.

◆ lastFloorHeight

float Gpws::lastFloorHeight = 0
private

Definition at line 86 of file Module.h.

◆ lastFloorRadio

float Gpws::lastFloorRadio = FLT_MAX
private

Definition at line 85 of file Module.h.

◆ lastTerrainVoice

Bus::Gpws::GpwsEnum Gpws::lastTerrainVoice = Bus::Gpws::NoAlert
private

Definition at line 51 of file Module.h.

◆ logger

Logger* Gpws::logger = nullptr
private

Definition at line 44 of file Module.h.

◆ mode2LatchAltitude

float Gpws::mode2LatchAltitude = 0
private

Definition at line 84 of file Module.h.

◆ mode2LatchSeconds

float Gpws::mode2LatchSeconds = 0
private

Definition at line 84 of file Module.h.

◆ mode2WasWarning

bool Gpws::mode2WasWarning = false
private

Definition at line 88 of file Module.h.

◆ mode3active

bool Gpws::mode3active = false
private

Definition at line 61 of file Module.h.

◆ mode3altitude

float Gpws::mode3altitude = 0.0f
private

Definition at line 62 of file Module.h.

◆ mode3Announcements

unsigned Gpws::mode3Announcements = 0
private

Definition at line 87 of file Module.h.

◆ mode5bactive

bool Gpws::mode5bactive = false
private

Definition at line 69 of file Module.h.

◆ mode6pr

bool Gpws::mode6pr = true
private

Definition at line 70 of file Module.h.

◆ mode6retardArmed

bool Gpws::mode6retardArmed = false
private

Definition at line 71 of file Module.h.

◆ oldIndicatedAirspeedKms

float Gpws::oldIndicatedAirspeedKms = FLT_MAX
private

Definition at line 64 of file Module.h.

◆ oldradioaltitude

float Gpws::oldradioaltitude = 0.0f
private

Definition at line 60 of file Module.h.

◆ oldRadioAltitudeKm

float Gpws::oldRadioAltitudeKm = 0.0f
private

Definition at line 73 of file Module.h.

◆ oldReference

Reference Gpws::oldReference = REF_ACLMODE
private

Definition at line 63 of file Module.h.

◆ oldTerrainForward

RiseMath::Vector3 Gpws::oldTerrainForward {}
private

Definition at line 46 of file Module.h.

◆ predictiveWindshear

GpwsPredictiveWindshear::Detector Gpws::predictiveWindshear
private

Definition at line 66 of file Module.h.

◆ predictiveWindVoiceSeconds

float Gpws::predictiveWindVoiceSeconds = 4
private

Definition at line 68 of file Module.h.

◆ previousDiscretes

unsigned Gpws::previousDiscretes = 0
private

Definition at line 87 of file Module.h.

◆ previousFaults

unsigned Gpws::previousFaults = 0
private

Definition at line 87 of file Module.h.

◆ previousFieldHeight

float Gpws::previousFieldHeight = FLT_MAX
private

Definition at line 86 of file Module.h.

◆ previousMapRange

float Gpws::previousMapRange = 20
private

Definition at line 57 of file Module.h.

◆ previousVerticalKms

float Gpws::previousVerticalKms = 0
private

Definition at line 76 of file Module.h.

◆ reactiveReady

bool Gpws::reactiveReady = false
private

Definition at line 74 of file Module.h.

◆ reactiveVehicle

int Gpws::reactiveVehicle = -1
private

Definition at line 75 of file Module.h.

◆ secsincelast

float Gpws::secsincelast = 0.0f
private

Definition at line 59 of file Module.h.

◆ takeoffPhase

bool Gpws::takeoffPhase = false
private

Definition at line 74 of file Module.h.

◆ takeoffSeconds

float Gpws::takeoffSeconds = 61
private

Definition at line 76 of file Module.h.

◆ terrainDataRevision

uint64_t Gpws::terrainDataRevision = 0
private

Definition at line 49 of file Module.h.

◆ terrainRangeActive

bool Gpws::terrainRangeActive = false
private

Definition at line 56 of file Module.h.

◆ terrainStability

TerrainAwareness::AlertStability Gpws::terrainStability
private

Definition at line 54 of file Module.h.

◆ terrainTrackValid

bool Gpws::terrainTrackValid = false
private

Definition at line 47 of file Module.h.

◆ terrainVehicle

int Gpws::terrainVehicle = -1
private

Definition at line 48 of file Module.h.

◆ terrainVoiceSeconds

float Gpws::terrainVoiceSeconds = 7
private

Definition at line 50 of file Module.h.

◆ testSeconds

float Gpws::testSeconds = 0
private

Definition at line 84 of file Module.h.

◆ testVehicle

int Gpws::testVehicle = -1
private

Definition at line 83 of file Module.h.

◆ viewscreen

Viewscreen* Gpws::viewscreen = nullptr
private

Definition at line 45 of file Module.h.

◆ windshear

GpwsWindshear::Detector Gpws::windshear
private

Definition at line 65 of file Module.h.


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