mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Add _trackerNum to extensions' displaynames (#848)
Co-authored-by: Uriel <urielfontan2002@gmail.com>
This commit is contained in:
@@ -166,12 +166,16 @@ class TrackersUDPServer(private val port: Int, name: String, private val tracker
|
||||
LogManager.info("[TrackerServer] Sensor $trackerId for ${connection.name} status: $sensorStatus")
|
||||
var imuTracker = connection.getTracker(trackerId)
|
||||
if (imuTracker == null) {
|
||||
val formattedHWID = connection.hardwareIdentifier.replace(":", "")
|
||||
var formattedHWID = connection.hardwareIdentifier.replace(":", "").takeLast(5)
|
||||
if (trackerId != 0) {
|
||||
formattedHWID += "_$trackerId"
|
||||
}
|
||||
|
||||
imuTracker = Tracker(
|
||||
connection,
|
||||
VRServer.getNextLocalTrackerId(),
|
||||
connection.name + "/" + trackerId,
|
||||
"IMU Tracker " + formattedHWID.subSequence(Math.max(formattedHWID.length - 5, 0), formattedHWID.length),
|
||||
"IMU Tracker $formattedHWID",
|
||||
null,
|
||||
trackerNum = trackerId,
|
||||
hasRotation = true,
|
||||
|
||||
Reference in New Issue
Block a user