mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-01 22:32:35 -08:00
update solarxr
This commit is contained in:
1 parent
20be49e4b0
commit
abec5ea4b9
5 files changed
+11
-13
No files matched your search
@@ -181,9 +181,9 @@ export function OutputTrackersSettings() {
|
||||
sendDerivedVelocity: settings.sendDerivedVelocity,
|
||||
};
|
||||
if (
|
||||
!blockHandsWarning.current &&
|
||||
(settings.trackers.includes(BodyPart.LEFT_HAND) ||
|
||||
settings.trackers.includes(BodyPart.RIGHT_HAND))
|
||||
!blockHandsWarning.current &&
|
||||
(settings.trackers.includes(BodyPart.LEFT_HAND) ||
|
||||
settings.trackers.includes(BodyPart.RIGHT_HAND))
|
||||
) {
|
||||
blockHandsWarning.current = true;
|
||||
}
|
||||
|
||||
@@ -318,9 +318,9 @@ export function TrackerSettingsPage() {
|
||||
<div className="flex justify-between">
|
||||
<Typography>{l10n.getString('tracker-infos-url')}</Typography>
|
||||
<Typography>
|
||||
{tracker?.device?.hardwareInfo?.ipAddress?.addr
|
||||
{tracker?.device?.hardwareInfo?.ipAddress
|
||||
? `udp://${IPv4.fromNumber(
|
||||
tracker?.device?.hardwareInfo?.ipAddress?.addr || 0
|
||||
tracker?.device?.hardwareInfo?.ipAddress || 0
|
||||
).toString()}`
|
||||
: '--'}
|
||||
</Typography>
|
||||
|
||||
@@ -263,9 +263,9 @@ function Row({
|
||||
/>
|
||||
</Cell>
|
||||
<Cell last={!moreInfo}>
|
||||
{tracker?.temp && tracker?.temp?.temp != 0 && (
|
||||
{tracker?.temp && tracker?.temp != 0 && (
|
||||
<Typography color={fontColor} whitespace="whitespace-nowrap">
|
||||
{tracker.temp.temp.toFixed(2)}
|
||||
{tracker.temp.toFixed(2)}
|
||||
</Typography>
|
||||
)}
|
||||
</Cell>
|
||||
@@ -290,7 +290,7 @@ function Row({
|
||||
<Typography color={fontColor} whitespace="whitespace-nowrap">
|
||||
udp://
|
||||
{IPv4.fromNumber(
|
||||
device?.hardwareInfo?.ipAddress?.addr || 0
|
||||
device?.hardwareInfo?.ipAddress || 0
|
||||
).toString()}
|
||||
</Typography>
|
||||
</Cell>
|
||||
|
||||
@@ -22,9 +22,7 @@ import solarxr_protocol.data_feed.server.ServerGuards
|
||||
import solarxr_protocol.data_feed.tracker_data.TrackerData
|
||||
import solarxr_protocol.data_feed.tracker_data.TrackerDataMask
|
||||
import solarxr_protocol.data_feed.tracker_data.TrackerInfo
|
||||
import solarxr_protocol.datatypes.Ipv4Address
|
||||
import solarxr_protocol.datatypes.MagnetometerStatus
|
||||
import solarxr_protocol.datatypes.Temperature
|
||||
import solarxr_protocol.datatypes.hardware_info.HardwareInfo
|
||||
import solarxr_protocol.datatypes.hardware_info.HardwareStatus
|
||||
import solarxr_protocol.datatypes.math.Quat
|
||||
@@ -59,7 +57,7 @@ private fun createTracker(device: DeviceState, tracker: TrackerState, trackerMas
|
||||
null
|
||||
},
|
||||
tps = if (trackerMask.tps == true) tracker.tps else null,
|
||||
temp = if (trackerMask.temp == true && tracker.imuTemp != null) Temperature(temp = tracker.imuTemp) else null,
|
||||
temp = if (trackerMask.temp == true && tracker.imuTemp != null) tracker.imuTemp else null,
|
||||
rawAcceleration = if (trackerMask.rawAcceleration == true) tracker.rawAcceleration.let { Vec3f(it.x, it.y, it.z) } else null,
|
||||
linearAcceleration = if (trackerMask.linearAcceleration == true) tracker.acceleration.let { Vec3f(it.x, it.y, it.z) } else null,
|
||||
rotationReferenceAdjusted = if (trackerMask.rotationReferenceAdjusted == true) tracker.rotation.let { Quat(it.x, it.y, it.z, it.w) } else null,
|
||||
@@ -93,7 +91,7 @@ private fun createDevice(
|
||||
officialBoardType = device.boardType,
|
||||
model = device.mcuType.toString(),
|
||||
firmwareVersion = device.firmware,
|
||||
ipAddress = Ipv4Address(ipv4AddressFromString(device.address)),
|
||||
ipAddress = ipv4AddressFromString(device.address),
|
||||
),
|
||||
trackers = if (trackerMask != null) {
|
||||
trackers.filter { it.deviceId == device.id }
|
||||
|
||||
+1
-1
Submodule solarxr-protocol updated: 288d65fc4a...f6e845ab72.
Reference in new issue
Block a user