mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-29 07:01:41 +00:00
Added setVoltage function to swerve motors, made SwervePoseEstimator public, and changed setting targetVelocity to inside setState
This commit is contained in:
@@ -236,6 +236,17 @@ public class REVSwerveMotor extends SwerveMotor
|
||||
m_motor.set(speed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the voltage of the motor.
|
||||
*
|
||||
* @param voltage Voltage to output.
|
||||
*/
|
||||
@Override
|
||||
public void setVoltage(double voltage)
|
||||
{
|
||||
m_motor.setVoltage(voltage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current value of the encoder corresponding to the PID.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user