Rise
The Vieneo Province
Loading...
Searching...
No Matches
Weather Radar tests

Checks weather-radar decoding, scan lifetime, terrain masking, attenuation and automatic tilt.

Subsystem: Avionics, navigation and flight guidance
Fixture/harness: weatherradartests
Setup: The standalone WeatherRadarTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/WeatherRadarTests.vcxproj; declared configurations: Debug|Win32, Release|Win32, Release|x64.

WeatherRadarAltitudeTests.h

Source: Tests/WeatherRadarAltitudeTests.h

Check Weather Radar Altitude

Fixture: Weather Radar tests
Case symbol: CheckWeatherRadarAltitude
Source: Tests/WeatherRadarAltitudeTests.h:3

Test
Check Weather Radar Altitude: ascent suspends only above 10 km MSL; descent retains 9.5 km hysteresis; same altitude honors direction-dependent feed latch.
Source check messages (including original failure wording)

  • ascent suspends only above 10 km MSL
  • descent retains 9.5 km hysteresis
  • same altitude honors direction-dependent feed latch
  • stale high-altitude latch cannot suppress near-ground missing data
  • invalid altitude cannot select empty sweep
  • start ascent with real storm history
  • normal suspension is distinct from valid clear samples
  • crossing above weather removes old echoes and warnings immediately
  • suspended feed shows normal WX and sweep rather than NO DATA
  • empty sweep advances halfway in two seconds
  • empty sweep reverses at normal cadence
  • 8 km/s ascent coast and orbit retain empty scan without a speed or Autoflyte exclusion
  • long coast never samples stale grids or expires normal suspension as a data fault
  • empty scan obeys sensor range cap
  • descent in hysteresis band stays quiet
  • descent below reacquisition boundary reports missing feed until it arrives
  • fresh descent feed starts a new sweep with no old storm memory
  • interior missing data still warns after descent
  • weather attenuation re-arms below the boundary
  • power off suppresses suspended-feed sweep
  • simulator entry clears suspended-feed state
  • simulator exit resumes clean empty sweep
  • invalid heading cannot generate a fictional sweep
  • ground hover cruise and reentry retain genuine missing-data indication

WeatherRadarAutoTiltTests.h

Source: Tests/WeatherRadarAutoTiltTests.h

Benchmark Weather Radar Auto Tilt

Fixture: Weather Radar tests
Case symbol: BenchmarkWeatherRadarAutoTilt
Source: Tests/WeatherRadarAutoTiltTests.h:2

Test
Benchmark Weather Radar Auto Tilt: benchmark must use the real terrain/weather decoder; benchmark must produce usable weather; two elevation looks have a bounded sampler budget.
Source check messages (including original failure wording)

  • benchmark must use the real terrain/weather decoder
  • benchmark must produce usable weather
  • two elevation looks have a bounded sampler budget

Check Weather Radar Auto Tilt

Fixture: Weather Radar tests
Case symbol: CheckWeatherRadarAutoTilt
Source: Tests/WeatherRadarAutoTiltTests.h:25

Test
Check Weather Radar Auto Tilt: parked hover approach and cruise retain valid automatic scanning; dry land never becomes a colored storm after automatic clutter rejection; low-altitude test actually illuminates terrain before rejecting it.
Source check messages (including original failure wording)

  • parked hover approach and cruise retain valid automatic scanning
  • dry land never becomes a colored storm after automatic clutter rejection
  • low-altitude test actually illuminates terrain before rejecting it
  • weather ahead survives clutter rejection before entry at every approach height and range
  • downward automatic look detects a shallow cell missed by a horizontal beam
  • level guard look retains close shallow weather when terrain raises automatic tilt
  • clutter rejection cannot reveal a low storm through a high ridge or call terrain weather attenuation
  • high-elevation airfield gets a ground-appropriate tilt without false rain
  • descent touchdown liftoff and climb refresh tilt and remove old colored weather
  • missing terrain cannot invent a tilt command or a clear weather picture
  • fresh data restores automatic tilt after missing input
  • range change immediately reacquires tilt and discards old history
  • power loss clears commanded tilt
  • simulator cannot retain a real-flight tilt
  • simulator exit starts fresh automatic acquisition
  • normal high-altitude empty sweep commands level without a stale angle or invalid-tilt indication
  • positive tilt readout includes sign and degrees
  • down tilt readout retains negative sign
  • rounded zero has no misleading negative sign
  • invalid angle is never printed as a commanded tilt

WeatherRadarGroundTests.h

Source: Tests/WeatherRadarGroundTests.h

Check Weather Radar Ground

Fixture: Weather Radar tests
Case symbol: CheckWeatherRadarGround
Source: Tests/WeatherRadarGroundTests.h:24

Test
Check Weather Radar Ground: mountain clutter is rejected while its terrain shadow remains without WX ATTEN; unobstructed upper beam detects red weather beyond a partial terrain blockage; empty upper beam does not declare the blocked central path clear.
Source check messages (including original failure wording)

  • mountain clutter is rejected while its terrain shadow remains without WX ATTEN
  • unobstructed upper beam detects red weather beyond a partial terrain blockage
  • empty upper beam does not declare the blocked central path clear
  • finite lower beam paints continuous flat ground beyond its geometric intercept
  • clear terrain has no weather or data warning
  • supplied water landforms produce weaker diffuse clutter than land
  • terrain return beyond deep precipitation cannot shine through weather attenuation
  • lower rays stopped by nearby ground cannot reveal a mountain through intervening heavy rain
  • terrain rescan retires center-path weather attenuation
  • missing lower-beam data stays annunciated despite a valid return at another elevation
  • repaired beam coverage clears data warning after rescan
  • positive-MSL water and mixed coast data survive the coordinate join
  • ground hover and cruise terrain scans remain active without speed or Autoflyte gating
  • ascent coast and orbital feed loss clears ground clutter and beam state
  • 8 km/s reentry re-acquires fresh finite-beam data
  • simulator entry clears all terrain echoes
  • simulator exit re-arms without replaying the old ground scan

WeatherRadarLimitsTests.h

Source: Tests/WeatherRadarLimitsTests.h

Check Weather Radar Limits

Fixture: Weather Radar tests
Case symbol: CheckWeatherRadarLimits
Source: Tests/WeatherRadarLimitsTests.h:3

Test
Check Weather Radar Limits: ground hover and flight terrain masking does not raise a WX warning; terrain stays opaque until beam clears the ridge; terrain shadow keeps its established shading.
Source check messages (including original failure wording)

  • ground hover and flight terrain masking does not raise a WX warning
  • terrain stays opaque until beam clears the ridge
  • terrain shadow keeps its established shading
  • real precipitation attenuation still warns on the ground and in hover
  • real weather attenuation still annunciates
  • terrain rescan retires old weather attenuation
  • weather attenuation re-arms after terrain masking
  • normal coverage boundary is not a fault
  • outside coverage remains visibly unknown instead of clear weather
  • normal coverage edge keeps unknown shading
  • normal edge on one bearing does not hide a weather shadow on another
  • interior gap still raises DATA LIMITED before a normal range boundary
  • repaired interior data clears warning after rescan
  • entirely out-of-coverage scan is NO DATA, never clear
  • large map range stops at 64 km without a warning
  • zoom in removes old boundary shading
  • uninitialized source is missing, not a normal limit
  • all four weather footprint edges are normal limits
  • interior weather is still sampled
  • missing interior terrain remains a data fault
  • independent terrain center limits actual coverage
  • overlapping independent footprints remain usable
  • masked interior weather remains a data fault
  • terrain footprint uses its own face at a cube seam
  • neighboring-face coverage rejects points beyond its rectangle
  • cube-corner coverage stops without a spurious data warning
  • ascent suborbital and orbital feed loss clears old limits and shadows
  • 8 km/s reentry starts with fresh coverage
  • simulator entry clears all radar states
  • simulator exit does not replay weather warnings

WeatherRadarSignalTests.h

Source: Tests/WeatherRadarSignalTests.h

Check Weather Radar Signal

Fixture: Weather Radar tests
Case symbol: CheckWeatherRadarSignal
Source: Tests/WeatherRadarSignalTests.h:3

Test
Check Weather Radar Signal: unobstructed light/moderate weather retains its color throughout supported range at all aircraft heights; red weather ahead is visible through intervening yellow before entry at both map ranges; deep purple core shadows yellow beyond it while adjacent clear path sees yellow.
Source check messages (including original failure wording)

  • unobstructed light/moderate weather retains its color throughout supported range at all aircraft heights
  • red weather ahead is visible through intervening yellow before entry at both map ranges
  • deep purple core shadows yellow beyond it while adjacent clear path sees yellow
  • blocking core stays purple before compensation is exhausted
  • sufficient heavy red path retains genuine attenuation without a purple requirement
  • rescan clears old storm shadow and restores moderate weather colors
  • heavy weather attenuation re-arms after compensated moderate weather
  • strong-cell path has no falsely clear or weak gates before shadow
  • strong-cell shadow boundary is stable to one gate across zoom changes

WeatherRadarTests.cpp

Source: Tests/WeatherRadarTests.cpp

Entry-point checks

Fixture: Weather Radar tests
Case symbol: main
Source: Tests/WeatherRadarTests.cpp:27

Test
Entry-point checks: unequipped performs no sampling; startup acquires only the first bearing; half sweep updates only crossed bearings.
Source check messages (including original failure wording)

  • clear threshold
  • green threshold
  • yellow threshold
  • red threshold
  • purple threshold
  • unequipped performs no sampling
  • power off performs no sampling
  • startup acquires only the first bearing
  • half sweep updates only crossed bearings
  • one four-second traverse
  • antenna reverses at right edge
  • round trip retains valid clear coverage
  • scheduled low-frame-rate sweep completes in four elapsed seconds
  • scheduled sweep reverses without repeatedly resetting history
  • five-second scheduled turn advances and reverses without a frame pause
  • actual frame pause restarts without catch-up
  • invalid scheduler frame timing clears output
  • near storm shadows distant storm
  • unobstructed distant storm is still detected
  • shadow annunciation
  • near intense return is purple
  • usable intense return retains its compensated color
  • unswept echo memory is unchanged
  • stored echoes stay at acquisition world position
  • stored echoes do not rotate with aircraft heading
  • unknown path is never clear
  • terrain blocks beam without inventing precip or a weather attenuation warning
  • horizontal beam above column has no precipitation return
  • ground hover cruise and high atmospheric flight scan
  • ascent coast and orbit clear stale data
  • re-entry re-arms a fresh sweep
  • 8 km/s descent has bounded scan work without IAS exclusion
  • simulator entry resets scanner
  • simulator exit cannot replay real-flight storm
  • power cycle clears memory
  • vehicle switch clears old antenna history
  • new feed token or face clears old footprint
  • teleport clears echoes
  • hard 64 km cap
  • no sampling beyond 64 km
  • map range change re-acquires at new scale
  • long pause cannot synthesize a full sweep
  • invalid position clears output
  • stale source expires
  • new source revision recovers after timeout
  • weather selects map fill
  • GPWS has display priority
  • TCAS keeps unobstructed display
  • simulator keeps baseline map
  • production weather wire grid accepted
  • terrain joined using weather coordinates
  • wire scale and terrain meters decoded correctly
  • wrong hemisphere never reuses weather grid
  • outside footprint is unavailable before terrain lookup
  • missing independent terrain cannot become zero elevation
  • masked grid point cannot become clear sky