Skip to content

Commit

Permalink
Update drive_by_joystick.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramDragon64 authored Jun 7, 2022
1 parent 6c49a8d commit 45d34f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Larry/commands/drive_by_joystick.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def execute(self) -> None:

self.direction = conversions.Conversions.convertJoystickInputToDegrees(conversions.Conversions.deadband(self.leftx(), constants.kdeadband), conversions.Conversions.deadband(self.lefty(), constants.kdeadband))

# field concentric
self.direction -= self.drive.gyro.get()

wpilib.SmartDashboard.putNumber(" direction - ", self.direction)
wpilib.SmartDashboard.putNumber(" speed - ", self.magnitude)
wpilib.SmartDashboard.putNumber(" turn power - ", self.turnPower())
Expand Down

0 comments on commit 45d34f6

Please # to comment.