Skip to content

Commit ff66b50

Browse files
committed
Update Zwerve.java
1 parent 5ba122a commit ff66b50

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Zwerve.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import edu.wpi.first.wpilibj.Timer;
44
import frc.libzodiac.ui.Axis;
55
import frc.libzodiac.util.Vec2D;
6+
import frc.robot.subsystems.Chassis;
67

78
import java.util.ArrayDeque;
89

@@ -127,6 +128,7 @@ public Zwerve init() {
127128
* @param rot rotate velocity, CCW positive
128129
*/
129130
public Zwerve go(Vec2D vel, double rot) {
131+
this.debug("pos", ""+Chassis.inav.getPosition());
130132
// direction adjustment
131133
final var curr_yaw = this.yaw.get();
132134
this.debug("desired", this.desired_yaw);
@@ -197,7 +199,7 @@ public Zwerve toggle_headless() {
197199

198200
public ZCommand drive(Axis x, Axis y, Axis rot, boolean useLimelight, double limelightForwardSpeed, double limelightRotateSpeed) {
199201
return new Zambda(this, () -> {
200-
final var vel = new Vec2D(useLimelight ? x.get() : limelightForwardSpeed, y.get());
202+
final var vel = new Vec2D(useLimelight ? limelightForwardSpeed : x.get(), y.get());
201203
this.go(vel, useLimelight ? limelightRotateSpeed : rot.get());
202204
});
203205
}

0 commit comments

Comments
 (0)