mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Minor improvements/fixes to new command framework (#2186)
This commit is contained in:
@@ -39,12 +39,11 @@ public class ArmSubsystem extends ProfiledPIDSubsystem {
|
||||
* Create a new ArmSubsystem.
|
||||
*/
|
||||
public ArmSubsystem() {
|
||||
super(new ProfiledPIDController(
|
||||
kP,
|
||||
0,
|
||||
0,
|
||||
new TrapezoidProfile.Constraints(kMaxVelocityRadPerSecond,
|
||||
kMaxAccelerationRadPerSecSquared)));
|
||||
super(new ProfiledPIDController(kP, 0, 0,
|
||||
new TrapezoidProfile.Constraints(
|
||||
kMaxVelocityRadPerSecond,
|
||||
kMaxAccelerationRadPerSecSquared)),
|
||||
0);
|
||||
m_encoder.setDistancePerPulse(kEncoderDistancePerPulse);
|
||||
// Start arm at rest in neutral position
|
||||
setGoal(kArmOffsetRads);
|
||||
|
||||
Reference in New Issue
Block a user