mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-06 08:42:32 -08:00
more lenient full reset checklist step
This commit is contained in:
1 parent
3586127381
commit
7d75825b82
4 files changed
+4
-4
No files matched your search
@@ -22,7 +22,7 @@ private const val SETTINGS_CONFIG_VERSION = 2
|
||||
data class TrackersConfig(
|
||||
val trackerPort: Int = 6969, // Not in SolarXR
|
||||
val globalMagEnabled: Boolean = false,
|
||||
val timeoutDelay: Float = 20.0f,
|
||||
val timeoutDelay: Float = 15f,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
|
||||
@@ -3,6 +3,7 @@ package dev.slimevr.tracker.behaviours
|
||||
import dev.slimevr.tracker.Tracker
|
||||
import dev.slimevr.tracker.TrackerActions
|
||||
import dev.slimevr.tracker.TrackerBehaviour
|
||||
import dev.slimevr.util.isActive
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.map
|
||||
@@ -23,7 +24,7 @@ class TrackerStaleCalibrationBehaviour : TrackerBehaviour {
|
||||
override fun observe(receiver: Tracker) {
|
||||
var previous: Placement? = null
|
||||
receiver.context.state
|
||||
.map { Placement(it.status == TrackerStatus.OK || it.status == TrackerStatus.SLEEPING, it.bodyPart) }
|
||||
.map { Placement(it.status.isActive() || it.status == TrackerStatus.OCCLUDED, it.bodyPart) }
|
||||
.distinctUntilChanged()
|
||||
.onEach { placement ->
|
||||
val last = previous
|
||||
|
||||
@@ -66,7 +66,7 @@ data class TrackerState(
|
||||
val intendedBodyPart: BodyPart?,
|
||||
val boneOffsets: Map<BodyPart, Vector3>,
|
||||
val customName: String?,
|
||||
val trackerDataType: TrackerDataType, // TODO
|
||||
val trackerDataType: TrackerDataType, // TODO flex sensors
|
||||
val lastMountingMethod: MountingMethod,
|
||||
val mountingOrientation: HeadingAlignment,
|
||||
val lastReference: Quaternion?,
|
||||
|
||||
@@ -2,7 +2,6 @@ package dev.slimevr.trackingchecklist
|
||||
|
||||
import dev.slimevr.VRServer
|
||||
import dev.slimevr.config.Settings
|
||||
import dev.slimevr.device.DeviceState
|
||||
import dev.slimevr.networkprofile.NetworkProfileManager
|
||||
import dev.slimevr.resets.ResetBodyParts
|
||||
import dev.slimevr.resets.ResetsManager
|
||||
|
||||
Reference in new issue
Block a user