File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
android/app/src/main/java/org/openbot Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff 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 (),
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments