TakMeshTestRunner

class TakMeshTestRunner(takMeshIntegration: TAKMeshIntegration)(source)

Debug-only test runner that sends the SDK's CoT XML test fixtures through the REAL TAK mesh pipeline: strip → parse → dispatch, via TAKMeshIntegration.sendCoTToMeshForTest. Each fixture is run through BOTH the v2 (firmware >= 2.8.0) and v1 (legacy) dispatch paths so the self-test's pass/fail rate reflects what a real connected radio would actually do on either firmware generation, rather than always exercising the v2 pipeline regardless of the connected radio's firmware — see TAKMeshIntegration.useTakV2.

Paces sends by waiting sendDelayMs between each successfully-sent fixture to avoid flooding the radio's TX queue. Fixtures that are dropped (not sent) incur no delay.

Constructors

Link copied to clipboard
constructor(takMeshIntegration: TAKMeshIntegration)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val currentFixture: StateFlow<String?>
Link copied to clipboard
val isRunning: StateFlow<Boolean>
Link copied to clipboard
val results: StateFlow<List<TakTestResult>>

Functions

Link copied to clipboard
suspend fun runAll()

Run all test fixtures sequentially through both the v2 and v1 dispatch paths. Updates results and currentFixture as each fixture is processed. results accumulates v2 runs first, then v1 runs.