Skip to content

Commit 5ea598a

Browse files
committed
fix style
1 parent 1914a13 commit 5ea598a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

android/app/src/main/java/org/openbot/main/SettingsFragment.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public class SettingsFragment extends PreferenceFragmentCompat {
3434
private SwitchPreferenceCompat storage;
3535
private SwitchPreferenceCompat location;
3636
private SwitchPreferenceCompat mic;
37-
private SwitchPreferenceCompat dynamicspeed;
38-
3937
private final ActivityResultLauncher<String[]> requestPermissionLauncher =
4038
registerForActivityResult(
4139
new ActivityResultContracts.RequestMultiplePermissions(),

android/app/src/main/java/org/openbot/tracking/MultiBoxTracker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public synchronized Control updateTarget() {
180180
// adjust speed depending on size of detected object bounding box
181181
if (useDynamicSpeed) {
182182
float scaleFactor = 1.0f - boxArea / (frameWidth * frameHeight);
183-
scaleFactor = scaleFactor > 0.75f ? 1.0f : scaleFactor; //tracked object far, full speed
183+
scaleFactor = scaleFactor > 0.75f ? 1.0f : scaleFactor; // tracked object far, full speed
184184
// apply scale factor if tracked object is not too near, otherwise stop
185185
if (scaleFactor > 0.25f) {
186186
leftControl *= scaleFactor;
@@ -191,7 +191,6 @@ public synchronized Control updateTarget() {
191191
}
192192
}
193193

194-
195194
} else {
196195
leftControl = 0.0f;
197196
rightControl = 0.0f;

0 commit comments

Comments
 (0)