Run Move tracking through PSMoveAPI

This commit is contained in:
Meta Vens 2026-07-12 21:11:20 +01:00
commit a014e38e99
8 changed files with 402 additions and 2 deletions

View file

@ -7,6 +7,8 @@ param(
[switch] $DiscoverMoveState = $true,
[switch] $ClaimUsbMoves = $true,
[string] $MoveEvidenceStream = "muninn:nightwing:move-evidence",
[string[]] $MoveMarkerCamera = @("nightwing-eye-0=/dev/video2", "nightwing-eye-1=/dev/video3"),
[int] $MoveTrackerExposureMilli = 100,
[int] $IntervalSeconds = 15,
[string] $IdunnRudpHealth = $env:IDUNN_RUDP_HEALTH,
[string] $IdunnDaemon = "nightwing-muninn",
@ -100,6 +102,11 @@ $moveRuntimeSetLines = @()
if ($moveStateSpecs.Count -gt 0) {
$moveRuntimeSetLines += $moveStateSetLines
$moveRuntimeSetLines += "set -- ""`$@"" --move-evidence-stream $(Quote-ShSingle $MoveEvidenceStream)"
foreach ($camera in $MoveMarkerCamera) {
$moveRuntimeSetLines += "set -- ""`$@"" --move-marker-camera $(Quote-ShSingle $camera)"
}
$moveRuntimeSetLines += "set -- ""`$@"" --move-psmoveapi-tracker"
$moveRuntimeSetLines += "set -- ""`$@"" --move-tracker-exposure-milli $(Quote-ShSingle ([string]$MoveTrackerExposureMilli))"
}
$moveRuntimeSetBlock = ($moveRuntimeSetLines -join "`n")
$odinCultMeshUriSetBlock = ""