Checks terrain and obstacle prediction, GPWS priorities, windshear and VMU playback lifecycle.
Subsystem: Avionics, navigation and flight guidance
Fixture/harness: terrainawarenesstests
Setup: Explicit setup symbols: Fixture. The standalone TerrainAwarenessTests harness owns the inputs, local helpers and assertion sink used by the case files below. Fixture is scoped to this harness; similarly named fixtures in other executables are independent.
Build/entry point: Tests/TerrainAwarenessTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.
GpwsControlsTests.h
Source: Tests/GpwsControlsTests.h
Controls And Completion
Fixture: Terrain Awareness tests
Case symbol: ControlsAndCompletion
Source: Tests/GpwsControlsTests.h:2
- Test
- Controls And Completion: master inhibit stops hazard alerts but retains terrain data; explicit inhibit can stop a hazard recording; explicit inhibit set is idempotent.
Source check messages (including original failure wording)
-
master inhibit stops hazard alerts but retains terrain data
-
explicit inhibit can stop a hazard recording
-
explicit inhibit set is idempotent
-
explicit inhibit reset works
-
toggle command changes inhibit state
-
vehicle change resets crew inhibit
-
delayed control is not consumed or discarded by an unpowered sensor reset
-
basic reactive protection remains active
-
combined control cancels GS in flight without starting self-test
-
GS cancel survives climb above 2000 feet until touchdown
-
GS cancel survives final approach below 30 feet
-
repeated cancel press is idempotent
-
touchdown clears GS cancel even with power off and zero timestep
-
same control starts test on ground
-
same control cancels an active ground test
-
DH uses float payload in km
-
invalid DH cannot poison thresholds
-
installation callout menu accepts bit mask
-
500 Above Field is selectable
-
VMU honors scalar gain and legacy/invalid defaults
-
hard G/S second phrase cannot interrupt first
-
hard G/S sequences two full clips
-
self test rejected in flight with feedback
-
ground test starts via Boolean command
-
functional test exercises both lamps and terrain pattern then ends
-
functional self test sends complete expected phrases through VMU
-
diagnostic test level reports current data
-
explicit false cancels test and pattern
-
toggle starts default level one
-
liftoff cancels self test before operational evaluation
-
power loss clears test and lamps
-
invalid radio height supplies fault and history
-
individual input faults recover independently
-
signed gear-calibrated ground clearance is not a failed GPWS input
-
GPWS preserves the signed radio-height sample
-
parked aircraft has no hazard alert or audio
-
explicit radio-height failure remains visible on ground
-
nonfinite radio height remains a fault on ground
-
air-data failure remains visible on ground while recovered radio fault clears
-
healthy ground inputs clear the live INOP indication
-
terrain beneath an elevated landing pad does not fail the parked radio altimeter
-
airborne terrain/radio reasonableness monitor remains active
-
signed near-ground radio height remains valid during liftoff
-
normal map is the default
-
terrain caution selects the supported 10 km inner / 20 km outer range
-
obstacle escalation does not overwrite saved map range
-
clearing hazard restores normal map and original range
-
inhibit restores map range
-
power loss restores range on early return
-
GPWS inhibit and GS cancel are CAS status messages
-
GPWS status messages do not issue a master-caution sound
-
CAS scan removes GS cancel after GPWS clears it on touchdown
-
CAS clears inhibit when selected off
-
TCF high-integrity bias protects legitimate touchdown
-
TCF middle plateau is 400 feet
-
TCF distant floor is 700 feet
-
TCF adjacent-runway minimum is 245 feet
-
RFCF bounded inner and outer ranges
-
RFCF reaches 300 feet at two nm with high-integrity runway
-
near-ground G/S desensitization
-
RFCF catches flight below an elevated runway despite valid radio clearance
-
constant floor penetration is not periodically repeated
-
20 percent further geometric altitude loss repeats floor warning
-
master inhibit suppresses TCF/RFCF
-
Peaks highest/middle/lowest bands use solid/dense/sparse green
-
non-Peaks leaves distant low terrain black
-
threat overrides Peaks band
-
relative yellow is sparse
-
higher relative red is dense
GpwsPredictiveWindshearTests.h
Source: Tests/GpwsPredictiveWindshearTests.h
Predictive Windshear Regressions
Fixture: Terrain Awareness tests
Case symbol: PredictiveWindshearRegressions
Source: Tests/GpwsPredictiveWindshearTests.h:1
- Test
- Predictive Windshear Regressions: look-ahead confirms before announcing; ground wind headwind loss is found ahead before ownship enters it; hazard behind the aircraft is not ahead.
Source check messages (including original failure wording)
-
look-ahead confirms before announcing
-
ground wind headwind loss is found ahead before ownship enters it
-
hazard behind the aircraft is not ahead
-
pure crosswind gradient is not a longitudinal loss
-
headwind gain does not masquerade as adverse shear
-
small grid quantization differences do not alert
-
turning in spatially uniform world wind does not create shear
-
marginal recovery retains an active advisory through hysteresis
-
sufficient recovery clears the advisory
-
a cleared advisory requires the full entry threshold to rearm
-
grid reset immediately clears predictive alert
-
disarming and rearming cannot rejuvenate an old weather revision
-
fresh weather revision rearms after source expiry
-
routine grid revision does not flicker a continuing spatial threat
-
uniform wind change between revisions is not spatial windshear
-
new request generation discards the old encounter confirmation
-
vehicle switch rearms from a fresh encounter
-
reposition does not carry over the old caution
-
missing grid strip cannot be skipped to predict a later encounter
-
known hazard remains useful with limited coverage farther ahead
-
fast near-ground flight retains protection with a bounded range
-
hover invents no forward travel; reactive detector remains separate
-
suborbital coast and orbit cannot sample a surface threat as flight-level wind
-
reentry begins a fresh confirmation
-
near-ground return rearms predictive caution
-
high-speed ascent stops the path when it leaves the surface layer
-
fast descent does not predict through the terrain
-
actual frame pause clears pending predictions
-
long scheduled turns with ordinary frames still confirm
-
invalid position clears the predictive display
-
advisory confirmation is elapsed-time based across frame rates
-
production source consumes the ground-wind packet
-
encoded ground bearing is converted to the propulsion velocity-TO convention
-
independent missing terrain invalidates a weather-grid sample
-
ground north bearing agrees across equatorial cube faces
-
production GPWS selects distinct amber look-ahead in manual/Autoflyte APN/ACL with zero IAS
-
predictive caution reaches existing VMU recording
-
encountered windshear outranks predictive advisory
-
simulator entry clears the ground-grid predictor
-
simulator exit cannot replay the old grid while reset is pending
-
touchdown clears prediction
-
weather radar power controls predictive acquisition
-
GPWS inhibit clears predictive state
-
position validity failure clears prediction
-
aircraft power loss clears prediction
-
busy VMU queues predictive caution with its own lifecycle tag
-
withdrawn grid cannot play a stale queued caution
-
fresh encounter plays predictive caution
-
VMU independently stops a playing predictive phrase on simulator entry before GPWS runs
-
direct predictive command cannot bypass simulator exclusion
GpwsWindshearTests.h
Source: Tests/GpwsWindshearTests.h
Windshear Regressions
Fixture: Terrain Awareness tests
Case symbol: WindshearRegressions
Source: Tests/GpwsWindshearTests.h:2
- Test
- Windshear Regressions: horizontal wind is not an updraft; global Y is horizontal at another planetary location; negative local radial wind produces a downdraft warning away from world Y.
Source check messages (including original failure wording)
-
horizontal wind is not an updraft
-
global Y is horizontal at another planetary location
-
negative local radial wind produces a downdraft warning away from world Y
-
body attitude does not rotate measured gusts away from their world direction
-
zero-speed hover retains downdraft protection
-
unknown planetary position invalidates wind sample
-
hover headwind to tailwind reversal follows the physical minus-Z nose at every heading
-
hover headwind loss has the same signed rate as moving-flight headwind loss
-
hover tailwind to headwind recovery cautions instead of reversing severity
-
equal-magnitude headwind/tailwind reversal has the correct severity
-
derivative uses sample timestamps rather than the frame interval
-
unchanged bus sample holds its result without injecting a false zero derivative
-
stale input expires and the same stale sample cannot rearm
-
recovered sensor primes a new history without a false shear spike
-
steady wind during a turn is not windshear
-
a pure crosswind change is not longitudinal shear
-
downdraft alone can warn
-
updraft alone can caution
-
invalid wind clears the detector
-
15/30/60/144/240 FPS and 1/5/20/60 Hz sensing produce the same shear rate and encounter states
-
production timestamp publisher is stable with alternating 7-100 ms frame times
-
flight freeze invalidates the sample and clears shear
-
reset fixture enters shear
-
vehicle, simulator, clock, sample-gap and disarm transitions discard history
-
reactive windshear height band is 10 through 1500 feet AGL
-
manual/Autoflyte and APN/ACL hover use the same operational windshear warning
-
windshear goes through existing bus/VMU without restarting active speech
-
orbit has no reactive low-altitude windshear alert
-
reentry re-arms without replaying the old event
-
new near-ground encounter after reentry is detected
-
high-speed near-ground flight does not inherit the bank spaceflight exclusion
-
touchdown clears windshear alert and queued speech
-
explicit hazard inhibit disarms windshear
-
power loss clears windshear indication
-
busy VMU leaves windshear queued normally
-
recovered windshear cannot play stale queued warning
ModuleSchedulerTests.h
Source: Tests/ModuleSchedulerTests.h
Module Scheduling Regressions
Fixture: Terrain Awareness tests
Case symbol: ModuleSchedulingRegressions
Source: Tests/ModuleSchedulerTests.h:3
- Test
- Module Scheduling Regressions: scheduler dispatches exactly one module per frame in registration order; every module gets one turn per cycle, including 50-module loads; variable FPS preserves accumulated elapsed and largest actual frame gap independently.
Source check messages (including original failure wording)
-
scheduler dispatches exactly one module per frame in registration order
-
every module gets one turn per cycle, including 50-module loads
-
variable FPS preserves accumulated elapsed and largest actual frame gap independently
-
zero-time frame does not consume a module turn
-
a real stalled frame reaches its scheduled module without a catch-up burst
-
gap history clears after each module consumes it
-
module-count change restarts without carrying old timing debt
-
invalid time never reaches a module
-
invalid-time recovery starts fresh
-
empty or disabled dispatcher runs no modules
-
VMU warm-up starts a full phrase even with a long accumulated turn
-
scheduled VMU does not overlap its warm-up recording
-
queued callout follows the completed warm-up phrase
-
scheduled GPWS detects sustained signed headwind loss
-
scheduled VMU plays complete windshear phrases without restarting speech
-
scheduled recovery clears warning and stale queued audio
TerrainAlertStabilityTests.h
Source: Tests/TerrainAlertStabilityTests.h
Terrain Alert Stability Regressions
Fixture: Terrain Awareness tests
Case symbol: TerrainAlertStabilityRegressions
Source: Tests/TerrainAlertStabilityTests.h:1
- Test
- Terrain Alert Stability Regressions: new caution is immediate at every scan rate; threshold chatter cannot flicker either the annunciation or highlighted cell; warning downgrades after two seconds without a warning.
Source check messages (including original failure wording)
-
new caution is immediate at every scan rate
-
threshold chatter cannot flicker either the annunciation or highlighted cell
-
escalation is immediate
-
warning downgrades after two seconds without a warning
-
caution clears after two seconds without a caution
-
grid shifts retain highlights by TCP identity, never by array slot
-
new grid identity cannot inherit an old hazard
-
missing geometry discards history without replay on return
-
obstacle collector reordering cannot move a retained highlight to another building
-
unloaded obstacle is removed immediately
-
physical exclusion clears held obstacle immediately
-
re-arming never replays a held obstacle
-
chatter keeps one encounter and complete caution speech without queue revision churn
-
chatter retains terrain page and encounter range
-
confirmed clearance restores normal map and original range
-
confirmed clearance discards obsolete queued predictive speech
TerrainAwarenessTests.cpp
Source: Tests/TerrainAwarenessTests.cpp
Geometry
Fixture: Terrain Awareness tests
Case symbol: Geometry
Source: Tests/TerrainAwarenessTests.cpp:50
- Test
- Geometry: level flight sees ridge 45 seconds ahead; level flight sees ridge 25 seconds ahead; terrain behind aircraft does not alert.
Source check messages (including original failure wording)
-
level flight sees ridge 45 seconds ahead
-
level flight sees ridge 25 seconds ahead
-
outside horizon does not alert
-
terrain behind aircraft does not alert
-
off-track city does not alert
-
one-meter tower between steps inside corridor is detected
-
low building cleared safely
-
obstacle has its own predictive caution
-
descending toward terrain below current altitude
-
adequate climb clears ridge
-
turn projects corridor into new flight path
-
turn hazard was outside straight corridor
-
ground speed changes caution to warning
-
complete terrain covers entire corridor
-
missing terrain strip remains unknown
-
range cap reports limited coverage at extreme speed
-
hover never invents forward velocity
-
invalid geometry does not produce arbitrary threats
Approaches
Fixture: Terrain Awareness tests
Case symbol: Approaches
Source: Tests/TerrainAwarenessTests.cpp:85
- Test
- Approaches: flat selected runway approach is quiet; hill on landing approach remains protected; gear down does not inhibit tower warning.
Source check messages (including original failure wording)
-
flat selected runway approach is quiet
-
hill on landing approach remains protected
-
gear down does not inhibit tower warning
-
unselected landing surface is not silently exempted
Colors And State
Fixture: Terrain Awareness tests
Case symbol: ColorsAndState
Source: Tests/TerrainAwarenessTests.cpp:96
- Test
- Colors And State: same altitude uses relative yellow; gear-down clearance band narrows; higher terrain has denser yellow shade.
Source check messages (including original failure wording)
-
same altitude uses relative yellow
-
yellow starts below aircraft
-
gear-down clearance band narrows
-
higher terrain has denser yellow shade
-
high terrain relative red
-
active caution overrides relative band
-
active warning overrides relative band
-
missing data is magenta not low terrain
-
descent anticipates lost height
-
guide priority selects terrain for equal-severity threats
-
earlier terrain wins equal severity
-
earlier obstacle does not reorder equal-severity guide priority
-
global height includes 915 m structures and a 1 km margin
-
suspension checks the full descent horizon
-
altitude hysteresis is bounded
-
obstacle warning label outranks terrain caution
-
simulator admission gate and real-world admission
-
ground vehicle landing and power inhibit
Audio And Lifecycle
Fixture: Terrain Awareness tests
Case symbol: AudioAndLifecycle
Source: Tests/TerrainAwarenessTests.cpp:140
- Test
- Audio And Lifecycle: terrain caution reaches GPWS and VMU; warning waits for caution phrase to finish; pending warning plays intact after caution.
Source check messages (including original failure wording)
-
terrain caution reaches GPWS and VMU
-
warning waits for caution phrase to finish
-
pending warning plays intact after caution
-
persistent predictive warning repeats plain pull up
-
simulator entry clears predictive state
-
simulator entry cancels queued and playing look-ahead audio
-
simulator exit does not replay an old alert
-
terrain warning reuses existing Terrain Terrain after simulator
-
power loss clears display queue and audio
-
reactive pull-up retains higher priority
-
cloud gate does not suppress known terrain threat
-
landing clears threats while retaining terrain display
-
missing obstacle warning uses plain predictive Pull Up
-
missing caution remains silent without substitute voice
-
invalid injected alert is discarded
Separate Warning Recordings
Fixture: Terrain Awareness tests
Case symbol: SeparateWarningRecordings
Source: Tests/TerrainAwarenessTests.cpp:189
- Test
- Separate Warning Recordings: queued Pull Up waits for the complete long warning preface; separate plain Pull Up follows terrain or obstacle without a combined file; persistent warning repeats only plain Pull Up.
Source check messages (including original failure wording)
-
queued Pull Up waits for the complete long warning preface
-
separate plain Pull Up follows terrain or obstacle without a combined file
-
persistent warning repeats only plain Pull Up
-
voice sets awaiting plain Pull Up retain their existing warning recording
-
ordinary reactive Pull Up keeps the existing whoop recording
-
single Terrain command uses its independent recording
-
complete doubled caution recording is played once per announcement
-
doubled caution file repeats at the existing seven-second cadence
Common Dispatch
Fixture: Terrain Awareness tests
Case symbol: CommonDispatch
Source: Tests/TerrainAwarenessTests.cpp:230
- Test
- Common Dispatch: one selected GPWS alert queues one command; common switch uses named command, selected alert priority and cancellation revision; persistent warning waits for two-second interval.
Source check messages (including original failure wording)
-
one selected GPWS alert queues one command
-
common switch uses named command, selected alert priority and cancellation revision
-
persistent warning waits for two-second interval
-
pending predictive speech is not duplicated
-
caution waits for seven-second interval
-
named obstacle caution uses vehicle sound slot
-
hazard clearance removes queued speech but finishes the active phrase
-
legacy one-shot callout survives alert clearance
-
legacy altitude callout still uses normal VMU dispatch
-
untagged predictive phrase cannot play in simulator
Uninterrupted Speech
Fixture: Terrain Awareness tests
Case symbol: UninterruptedSpeech
Source: Tests/TerrainAwarenessTests.cpp:280
- Test
- Uninterrupted Speech: coverage flicker cannot restart a caution mid-word or bypass its cadence; persistent caution can repeat after its normal interval; new terrain warning cannot cut an altitude callout mid-word.
Source check messages (including original failure wording)
-
coverage flicker cannot restart a caution mid-word or bypass its cadence
-
persistent caution can repeat after its normal interval
-
normal altitude callout begins
-
new terrain warning cannot cut an altitude callout mid-word
-
warning takes the channel after the altitude phrase finishes
-
fast altitude crossings skip forty without truncating fifty, thirty or twenty
Stable Category Priority
Fixture: Terrain Awareness tests
Case symbol: StableCategoryPriority
Source: Tests/TerrainAwarenessTests.cpp:312
- Test
- Stable Category Priority: near-equal encounter times cannot chatter the map or selected caution; jittering threats preserve three intact terrain phrases on the seven-second cadence; higher obstacle severity takes priority immediately.
Source check messages (including original failure wording)
-
near-equal encounter times cannot chatter the map or selected caution
-
jittering threats preserve three intact terrain phrases on the seven-second cadence
-
higher obstacle severity takes priority immediately
-
obstacle caution is selected immediately when terrain clears
Manual Audit Regressions
Fixture: Terrain Awareness tests
Case symbol: ManualAuditRegressions
Source: Tests/TerrainAwarenessTests.cpp:333
- Test
- Manual Audit Regressions: Mode 4A ramps from 500 ft and caps at 1000 ft instead of using 1000 ft as a minimum; Mode 4B ramps from 245 ft and caps at 1000 ft; available TAD disables Mode 4 speed expansion.
Source check messages (including original failure wording)
-
Mode 4A ramps from 500 ft and caps at 1000 ft instead of using 1000 ft as a minimum
-
Mode 4B ramps from 245 ft and caps at 1000 ft
-
available TAD disables Mode 4 speed expansion
-
jet bank limits include low altitude and autopilot reduction
-
MTC starts at zero and integrates elapsed time
-
MTC reaches 75 percent of 15 second average
-
MTC cannot fall with decreasing terrain clearance
-
ground declutter hides airport surface while higher mountains remain red
-
runway display declutter cannot hide a detected threat
-
runway declutter is a vertical band, not a blanket hiding of everything below runway height
-
ground state preserves terrain awareness with no predictive or reactive flight warnings
-
first radio sample cannot invent a closure rate
-
cloud layer cannot inhibit reactive pull up
-
manual ILS without autopilot capture gets hard glideslope warning
-
hard glideslope alert clears when deviation recovers
-
glideslope cancel remains above 2000 ft until touchdown
-
glideslope cancel remains below 30 ft until touchdown
-
bank advisory exists below the old 50 ft cutoff
-
autopilot bank protection retains its reduced limit within the flight envelope
-
gear-up crossing cannot call landing minimums
-
altitude oscillation does not repeat a callout in one approach
-
latest crossed altitude replaces obsolete queued height without losing priority
-
soft glideslope uses half volume
-
unchanged soft glideslope deviation does not repeat on a timer
-
20 percent deeper soft deviation produces another phrase
-
hard glideslope restores normal volume after higher-priority altitude callout
-
recovered reactive warning cannot remain queued for later playback
-
unchanged excessive bank produces one advisory
-
second 20 percent bank increase makes advisory continuous
-
reducing bank below continuous threshold stops repetition
-
full landing configuration suppresses Mode 2B pull up
-
Mode 2B can warn with gear up when landing-flap input selects it
-
Mode 4A does not warn throughout an incorrectly flattened 1000 ft envelope
-
correct Mode 4A speed envelope also protects level flight
-
TAD availability narrows Mode 4 envelope without muting it entirely
-
takeoff clearance floor detects rising ground without false Don't Sink
-
actual altitude loss after takeoff triggers Don't Sink
-
positive climb clears Don't Sink
-
destination airport vicinity selects Mode 2B without gear, flaps or ILS capture
-
outside 10 nm destination vicinity retains Mode 2A
-
more than 3500 ft above destination retains Mode 2A despite nearby range
Bank Altitude Envelope
Fixture: Terrain Awareness tests
Case symbol: BankAltitudeEnvelope
Source: Tests/TerrainAwarenessTests.cpp:488
- Test
- Bank Altitude Envelope: 40-degree bank selects Autoflyte only, including 40000 ft AGL over a high field; manual and Autoflyte bank profiles reach the normal VMU path; manual 55-degree bank protection remains above the former ceiling.
Source check messages (including original failure wording)
-
40-degree bank selects Autoflyte only, including 40000 ft AGL over a high field
-
manual and Autoflyte bank profiles reach the normal VMU path
-
manual 55-degree bank protection remains above the former ceiling
-
manual 40-degree bank is quiet
-
engaging Autoflyte immediately applies the 33-degree profile
-
disengaging Autoflyte expires its queued advisory
-
thin-air coast, hypersonic entry and 900 km orbit cannot announce bank angle
-
normal flight remains eligible above thin-air and below hypersonic thresholds
-
one-percent density suspends even stationary suborbital coast
-
thin-air hysteresis prevents chattering
-
two-percent density and Mach 4 rearm together
-
hypersonic flight suspends bank advisories in denser air
-
hypersonic hysteresis holds during initial deceleration
-
return to Mach 4 rearms normal bank profiles
-
near-ground protection overrides the spaceflight gate at 762 m inclusive
-
invalid admission inputs do not create bank warnings
-
valid near-ground radio height does not depend on density or Mach
-
bank warning can wait behind an existing phrase
-
spaceflight entry removes queued bank audio
-
re-entry retains thin-air hysteresis
-
denser hypersonic re-entry still inhibits the jet bank advisory
-
slower atmospheric re-entry rearms the advisory
-
spaceflight transition lets an active phrase finish without interruption
-
no stale repeats survive spaceflight entry
-
near-ground recovery overrides a latched high-speed exclusion
-
transition band retains the previous spaceflight state
-
ground, power and vehicle reset cannot retain stale spaceflight hysteresis
-
zero-IAS VTOL retains the five-foot minimum and near-ground bank protection
-
spaceflight bank exclusion cannot inhibit a separate predictive terrain warning
-
spaceflight bank exclusion cannot inhibit a separate obstacle warning