Updated to 2024

This commit is contained in:
thenetworkgrinch
2024-01-15 14:37:13 -06:00
parent 3fd8493ccb
commit a71d7a0b4e
185 changed files with 6910 additions and 10987 deletions

View File

@@ -1,31 +1,31 @@
package swervelib.encoders;
import com.reduxrobotics.sensors.canandcoder.CANandcoder;
import com.reduxrobotics.sensors.canandcoder.Canandcoder;
import edu.wpi.first.wpilibj.DriverStation;
/**
* HELIUM {@link CANandcoder} from ReduxRobotics absolute encoder, attached through the CAN bus.
* HELIUM {@link Canandcoder} from ReduxRobotics absolute encoder, attached through the CAN bus.
*/
public class CanAndCoderSwerve extends SwerveAbsoluteEncoder
{
/**
* The {@link CANandcoder} representing the CANandCoder on the CAN bus.
* The {@link Canandcoder} representing the CANandCoder on the CAN bus.
*/
public CANandcoder encoder;
public Canandcoder encoder;
/**
* Inversion state of the encoder.
*/
private boolean inverted = false;
/**
* Create the {@link CANandcoder}
* Create the {@link Canandcoder}
*
* @param canid The CAN ID whenever the CANandCoder is operating on the CANBus.
*/
public CanAndCoderSwerve(int canid)
{
encoder = new CANandcoder(canid);
encoder = new Canandcoder(canid);
}
/**