Merge branch 'main' into subprojects

This commit is contained in:
ImUrX committed 2023-06-15 15:38:23 -03:00
commit 0e64f1241f
11 files changed
+644 -152

No files matched your search

@@ -293,7 +293,20 @@ public abstract class SteamVRBridge extends ProtobufBridge implements Runnable {
}
}
if (lowestLevel >= 200) {
// Internal battery reporting reports 5V max, and <= 3.2V when >=50mV
// lower than initial reading (e.g. 3.25V down from 3.3V), and ~0V when
// battery is fine.
// 3.2V is technically 0%, but the last 5% of battery level is ignored,
// which makes 3.36V 0% in practice. Refer to batterymonitor.cpp in
// SlimeVR-Tracker-ESP for exact details.
// External battery reporting reports anything > 0V.
// The following should catch internal battery reporting and erroneous
// readings.
if (
((lowestLevel >= 200) || (lowestLevel < 0))
|| ((trackerVoltage < 3.2) && (lowestLevel <= 0)
|| ((trackerVoltage >= 5) && (lowestLevel > 150)))
) {
return;
} else {
trackerLevel = lowestLevel / 100;
@@ -42,7 +42,8 @@ data class TrackerFrames(val name: String = "", val frames: FastList<TrackerFram
hasPosition = firstFrame.hasPosition(),
hasRotation = firstFrame.hasRotation(),
hasAcceleration = firstFrame.hasAcceleration(),
isInternal = true,
// Make sure this is false!! Otherwise HumanSkeleton ignores it
isInternal = false,
isComputed = true
)