use of org.openbot.utils.Enums.DriveMode in project OpenBot by isl-org.
the class CameraActivity method connectPhoneController.
private void connectPhoneController() {
phoneController.connect(this);
DriveMode oldDriveMode = driveMode;
// Currently only dual drive mode supported
setDriveMode(DriveMode.DUAL);
driveModeSpinner.setAlpha(0.5f);
preferencesManager.setDriveMode(oldDriveMode.getValue());
}
use of org.openbot.utils.Enums.DriveMode in project OpenBot by isl-org.
the class FreeRoamFragment method connectPhoneController.
private void connectPhoneController() {
phoneController.connect(requireContext());
DriveMode oldDriveMode = currentDriveMode;
// Currently only dual drive mode supported
setDriveMode(DriveMode.DUAL);
binding.controllerContainer.driveMode.setAlpha(0.5f);
binding.controllerContainer.driveMode.setEnabled(false);
preferencesManager.setDriveMode(oldDriveMode.getValue());
}
Aggregations