From 3c955073d94a90d6fa4005bbeacb74e3b625a539 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 18:57:48 +0000 Subject: [PATCH] style: format code with Ktlint This commit fixes the style issues introduced in d16b0dc according to the output from Ktlint. Details: None --- src/main/java/frc/robot/RobotContainer.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.kt b/src/main/java/frc/robot/RobotContainer.kt index 7d2303e..a786710 100755 --- a/src/main/java/frc/robot/RobotContainer.kt +++ b/src/main/java/frc/robot/RobotContainer.kt @@ -14,7 +14,6 @@ import edu.wpi.first.math.geometry.Pose2d import edu.wpi.first.math.geometry.Rotation2d import edu.wpi.first.math.geometry.Translation2d import edu.wpi.first.wpilibj.DriverStation -import edu.wpi.first.wpilibj.RobotBase import edu.wpi.first.wpilibj.smartdashboard.SendableChooser import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard import edu.wpi.first.wpilibj2.command.Command @@ -37,7 +36,7 @@ class RobotContainer { private val controlChooser: SendableChooser = SendableChooser() private val controlChooserLogger: LoggedDashboardChooser - + private val speedChooser: SendableChooser = SendableChooser() private val speedChooserLogger: LoggedDashboardChooser private var MaxSpeed: Double = TunerConstants.kSpeedAt12VoltsMps // Initial max is true top speed @@ -127,7 +126,7 @@ class RobotContainer { val controlPick = Trigger { lastControl !== controlChooserLogger.get() } controlPick.onTrue(Commands.runOnce({ newControlStyle() })) - val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) {0.65} } + val speedPick = Trigger { lastSpeed !== try { speedChooserLogger.get()!! } catch (e: Throwable) { 0.65 } } speedPick.onTrue(Commands.runOnce({ newSpeed() })) drv.x().and(drv.pov(0)).whileTrue(drivetrain.runDriveQuasiTest(SysIdRoutine.Direction.kForward)) @@ -184,7 +183,7 @@ class RobotContainer { autoChooser.get() private fun newControlStyle() { - lastControl = if(controlChooserLogger.get() != null) controlChooserLogger.get() else "2 Joysticks" + lastControl = if (controlChooserLogger.get() != null) controlChooserLogger.get() else "2 Joysticks" when (controlChooserLogger.get()) { "2 Joysticks" -> controlStyle = Supplier { drive.withVelocityX(-drv.leftY * MaxSpeed) // Drive forward -Y