Skip to content

Commit

Permalink
More docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Jan 24, 2025
1 parent f3e197f commit c45c3f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
8 changes: 1 addition & 7 deletions developerRobot/src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,8 @@
package frc.robot;

import edu.wpi.first.wpilibj.TimedRobot;
import edu.wpi.first.wpilibj.counter.EdgeConfiguration;
import edu.wpi.first.wpilibj.counter.UpDownCounter;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

public class Robot extends TimedRobot {
UpDownCounter counter = new UpDownCounter(0, EdgeConfiguration.kFallingEdge);
/**
* This function is run when the robot is first started up and should be used for any
* initialization code.
Expand Down Expand Up @@ -39,7 +35,5 @@ public void testPeriodic() {}

/** This function is called periodically during all modes. */
@Override
public void robotPeriodic() {
SmartDashboard.putNumber("Count", counter.getCount());
}
public void robotPeriodic() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class Tachometer implements Sendable, AutoCloseable {
* Constructs a new tachometer.
*
* @param channel The channel of the Tachometer.
* @param configuration The edge configuration
*/
@SuppressWarnings("this-escape")
public Tachometer(int channel, EdgeConfiguration configuration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class UpDownCounter implements Sendable, AutoCloseable {
* Constructs a new UpDown Counter.
*
* @param channel The up count source (can be null).
* @param countUp True to count up, false to count down.
* @param configuration The edge configuration.
*/
@SuppressWarnings("this-escape")
public UpDownCounter(int channel, EdgeConfiguration configuration) {
Expand Down

0 comments on commit c45c3f0

Please sign in to comment.