Search in sources :

Example 1 with DriveMode

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());
}
Also used : DriveMode(org.openbot.utils.Enums.DriveMode)

Example 2 with DriveMode

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());
}
Also used : DriveMode(org.openbot.utils.Enums.DriveMode)

Aggregations

DriveMode (org.openbot.utils.Enums.DriveMode)2