mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 20:06:28 -08:00
Add clear drift compensation
This commit is contained in:
1 parent
3e308b222f
commit
0ef42d01bb
7 files changed
+89
-3
No files matched your search
@@ -33,6 +33,15 @@ public class DriftCompensationConfig {
|
||||
}
|
||||
}
|
||||
|
||||
public void clearTrackersDriftCompensation() {
|
||||
for (Tracker t : Main.getVrServer().getAllTrackers()) {
|
||||
Tracker tracker = t.get();
|
||||
if (tracker instanceof IMUTracker imuTracker) {
|
||||
imuTracker.clearDriftCompensation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public boolean getEnabled() {
|
||||
return enabled;
|
||||
|
||||
Reference in new issue
Block a user