mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-26 20:06:28 -08:00
changed default values for filters
This commit is contained in:
1 parent
82779d101b
commit
b5bd7e0a26
2 files changed
+3
-3
No files matched your search
@@ -70,7 +70,7 @@ public class TrackersFiltersGUI extends EJBagNoStretch {
|
||||
add(Box.createVerticalStrut(40));
|
||||
row++;
|
||||
|
||||
filterAmount = (Float) FastMath.clamp(server.config.getFloat("filters.amount", 0.5f), 0, 1);
|
||||
filterAmount = (Float) FastMath.clamp(server.config.getFloat("filters.amount", 0.3f), 0, 1);
|
||||
|
||||
add(new JLabel("Intensity"), c(0, row, 2));
|
||||
add(new AdjButton("+", 0, false), c(1, row, 2));
|
||||
@@ -78,7 +78,7 @@ public class TrackersFiltersGUI extends EJBagNoStretch {
|
||||
add(new AdjButton("-", 0, true), c(3, row, 2));
|
||||
row++;
|
||||
|
||||
filterTicks = (int) FastMath.clamp(server.config.getInt("filters.tickCount", 3), 0, 80);
|
||||
filterTicks = (int) FastMath.clamp(server.config.getInt("filters.tickCount", 2), 0, 80);
|
||||
|
||||
add(new JLabel("Ticks"), c(0, row, 2));
|
||||
add(new AdjButton("+", 1, false), c(1, row, 2));
|
||||
|
||||
@@ -82,7 +82,7 @@ public class IMUTracker implements Tracker, TrackerWithTPS, TrackerWithBattery {
|
||||
rotAdjust.loadIdentity();
|
||||
}
|
||||
bodyPosition = TrackerPosition.getByDesignation(config.designation);
|
||||
setFilter(vrserver.config.getString("filters.type"), vrserver.config.getFloat("filters.amount", 0.5f), vrserver.config.getInt("filters.tickCount", 3));
|
||||
setFilter(vrserver.config.getString("filters.type"), vrserver.config.getFloat("filters.amount", 0.3f), vrserver.config.getInt("filters.tickCount", 2));
|
||||
}
|
||||
}
|
||||
public void setFilter(String type, float amount, int ticks){
|
||||
|
||||
Reference in new issue
Block a user