Skip to content

Commit

Permalink
Fix velocity/position requests
Browse files Browse the repository at this point in the history
  • Loading branch information
CoryNessCTR committed Dec 1, 2023
1 parent 9455ac8 commit 9cf48ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions java/PositionClosedLoop/src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class Robot extends TimedRobot {

/* Be able to switch which control request to use based on a button press */
/* Start at position 0, enable FOC, no feed forward, use slot 0 */
private final PositionVoltage m_voltagePosition = new PositionVoltage(0, 0, true, 0, 0, false);
private final PositionVoltage m_voltagePosition = new PositionVoltage(0, 0, true, 0, 0, false, false, false);
/* Start at position 0, no feed forward, use slot 1 */
private final PositionTorqueCurrentFOC m_torquePosition = new PositionTorqueCurrentFOC(0, 0, 0, 1, false);
private final PositionTorqueCurrentFOC m_torquePosition = new PositionTorqueCurrentFOC(0, 0, 0, 1, false, false, false);
/* Keep a brake request so we can disable the motor */
private final NeutralOut m_brake = new NeutralOut();

Expand Down
4 changes: 2 additions & 2 deletions java/VelocityClosedLoop/src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public class Robot extends TimedRobot {

/* Be able to switch which control request to use based on a button press */
/* Start at velocity 0, enable FOC, no feed forward, use slot 0 */
private final VelocityVoltage m_voltageVelocity = new VelocityVoltage(0, 0, true, 0, 0, false);
private final VelocityVoltage m_voltageVelocity = new VelocityVoltage(0, 0, true, 0, 0, false, false, false);
/* Start at velocity 0, no feed forward, use slot 1 */
private final VelocityTorqueCurrentFOC m_torqueVelocity = new VelocityTorqueCurrentFOC(0, 0, 0, 1, false);
private final VelocityTorqueCurrentFOC m_torqueVelocity = new VelocityTorqueCurrentFOC(0, 0, 0, 1, false, false, false);
/* Keep a neutral out so we can disable the motor */
private final NeutralOut m_brake = new NeutralOut();

Expand Down

0 comments on commit 9cf48ac

Please sign in to comment.