Skip to content

Commit

Permalink
More reverting of MecanumChassis
Browse files Browse the repository at this point in the history
  • Loading branch information
Carter Turnbaugh committed Sep 30, 2015
1 parent ba7f0dd commit 54243d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions commands/motor/ControlMotor.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ public <A extends Subsystem & SpeedController> ControlMotor(A motor, Controller
this.axis = axis;
requires(motor);
setInterruptible(true);
logger = new LogKitten(LogKitten.LEVEL_WARN, LogKitten.LEVEL_WARN);
logger = new LogKitten(LogKitten.LEVEL_DEBUG, LogKitten.LEVEL_DEBUG);
logger.v("ControlMotor created for " + motor.getName());
}

protected void initialize() {
logger.v("MotorInPipe initialized");
logger.v("ControlMotor initialized");
System.out.println("ControlMotor initlialized");
}

Expand Down
8 changes: 4 additions & 4 deletions subsystems/chassis/MecanumChassis.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public void move(double speed, double turnSpeed) {
// At the moment, I see no reason that
private static class MecanumHelper {
public static double[] calculateWheels(double speed, double angle, double turnSpeed) {
System.out.println("Angle: " + angle);
System.out.println("Speed: " + speed);
System.out.println("Turnspeed: " + turnSpeed);
angle += Math.PI / 4.0; // Shift axes to work with mecanum
// System.out.println("Angle: " + angle);
// System.out.println("Speed: " + speed);
// System.out.println("Turnspeed: " + turnSpeed);
angle -= Math.PI / 4.0; // Shift axes to work with mecanum
angle = angle % (Math.PI * 2); // make sure angle makes sense
double frontLeft = speed * Math.sin(angle) + turnSpeed;
double frontRight = -1 * speed * Math.cos(angle) + turnSpeed;
Expand Down

0 comments on commit 54243d4

Please sign in to comment.