Checks target selection, hover-leveling eligibility, pilot overrides and attitude convergence.
Subsystem: Avionics, navigation and flight guidance
Fixture/harness: tvmlevelingtests
Setup: Explicit setup symbols: Fixture. The standalone TvmLevelingTests harness owns the inputs, local helpers and assertion sink used by the case files below.
Build/entry point: Tests/TvmLevelingTests.vcxproj; declared configurations: Release|x64.
TvmLevelingTests.cpp
Source: Tests/TvmLevelingTests.cpp
Targets
Fixture: TVM Leveling tests
Case symbol: Targets
Source: Tests/TvmLevelingTests.cpp:24
- Test
- Targets: airborne/interior/station contact; contact in grounded parent uses parent velocity.
Source check messages (including original failure wording)
-
selected ground waypoint
-
missing waypoint
-
out of range waypoint
-
uninitialized waypoint
-
station target cannot level
-
grounded contact
-
airborne/interior/station contact
-
contact in grounded parent uses parent velocity
-
airborne parent
-
invalid parent
-
inactive contact
-
stale contact
-
invalid slot
-
out of range target
-
outside contact list
Policy
Fixture: TVM Leveling tests
Case symbol: Policy
Source: Tests/TvmLevelingTests.cpp:44
- Test
- Policy: inhibit restores original manual augmentation; immediate re-arm without stale state; IAS zero does not suppress hover assist.
Source check messages (including original failure wording)
-
hover commands both axes
-
inhibit restores original manual augmentation
-
immediate re-arm without stale state
-
IAS zero does not suppress hover assist
-
pitch override independent of roll
-
roll override independent of yaw/pitch
-
release manual control resumes leveling
-
smooth fade through stall threshold
-
smooth fade through Mach one
-
high-speed thin-air flight retains free pointing even with ground target
-
airborne/spacecraft target never acquires landing leveling
Convergence
Fixture: TVM Leveling tests
Case symbol: Convergence
Source: Tests/TvmLevelingTests.cpp:81
- Test
- Convergence: nose and wings converge to horizon; settles without continuing rotation.
Source check messages (including original failure wording)
-
finite bounded torque
-
nose and wings converge to horizon
-
settles without continuing rotation