mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Added lock mode, autonomous example
This commit is contained in:
@@ -27,8 +27,6 @@ import swervelib.parser.SwerveDriveConfiguration;
|
||||
public class SwerveDrive
|
||||
{
|
||||
|
||||
//
|
||||
// Swerve base kinematics object
|
||||
/**
|
||||
* Swerve Kinematics object utilizing second order kinematics.
|
||||
*/
|
||||
@@ -156,7 +154,7 @@ public class SwerveDrive
|
||||
// Sets states
|
||||
for (SwerveModule module : swerveModules)
|
||||
{
|
||||
module.setDesiredState(desiredStates[module.moduleNumber], false); // Todo: Send isOpenLoop
|
||||
module.setDesiredState(desiredStates[module.moduleNumber], isOpenLoop);
|
||||
SmartDashboard.putNumber("Module " + module.moduleNumber + " Speed Setpoint: ",
|
||||
desiredStates[module.moduleNumber].speedMetersPerSecond);
|
||||
SmartDashboard.putNumber("Module " + module.moduleNumber + " Angle Setpoint: ",
|
||||
|
||||
Reference in New Issue
Block a user