Logger.addDataReceiver(new WPILOGWriter(LogFileUtil.addPathSuffix(logPath, "_sim")));
break;
}
- Logger
- .start(); // Start logging! No more data receivers, replay sources, or metadata values may
- // be added.
+ Logger.start(); // Start logging! No more data receivers, replay sources, or metadata values may
+ // be added.
}
/**
// Uncomment the next line, set the desired RobotId, deploy, and then comment the line out
// RobotId.setRobotId(RobotId.SwerveCompetition);
- RobotController.setBrownoutVoltage(
- 4.6); // TODO might break on systemcores
- // https://www.chiefdelphi.com/t/frc-1678-citrus-circuits-systemcore-alpha-testing-thread/506842
+ RobotController.setBrownoutVoltage(4.6); // TODO might break on systemcores
+ // https://www.chiefdelphi.com/t/frc-1678-citrus-circuits-systemcore-alpha-testing-thread/506842
// obtain this robot's identity
RobotId robotId = RobotId.getRobotId();
ChassisSpeeds.fromFieldRelativeSpeeds(
driveSpeeds,
yaw); // Changing this does not cause problems because getChassisSpeeds() creates a new
- // object
+ // object
State xState = new State(currentPose.getX(), driveSpeeds.vxMetersPerSecond);
State yState = new State(currentPose.getY(), driveSpeeds.vyMetersPerSecond);
State angleState =