mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] Armbot: rename kCos to kG (#3975)
This commit is contained in:
@@ -38,7 +38,7 @@ public final class Constants {
|
||||
|
||||
// These are fake gains; in actuality these must be determined individually for each robot
|
||||
public static final double kSVolts = 1;
|
||||
public static final double kCosVolts = 1;
|
||||
public static final double kGVolts = 1;
|
||||
public static final double kVVoltSecondPerRad = 0.5;
|
||||
public static final double kAVoltSecondSquaredPerRad = 0.1;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ArmSubsystem extends ProfiledPIDSubsystem {
|
||||
new Encoder(ArmConstants.kEncoderPorts[0], ArmConstants.kEncoderPorts[1]);
|
||||
private final ArmFeedforward m_feedforward =
|
||||
new ArmFeedforward(
|
||||
ArmConstants.kSVolts, ArmConstants.kCosVolts,
|
||||
ArmConstants.kSVolts, ArmConstants.kGVolts,
|
||||
ArmConstants.kVVoltSecondPerRad, ArmConstants.kAVoltSecondSquaredPerRad);
|
||||
|
||||
/** Create a new ArmSubsystem. */
|
||||
|
||||
@@ -38,7 +38,7 @@ public final class Constants {
|
||||
|
||||
// These are fake gains; in actuality these must be determined individually for each robot
|
||||
public static final double kSVolts = 1;
|
||||
public static final double kCosVolts = 1;
|
||||
public static final double kGVolts = 1;
|
||||
public static final double kVVoltSecondPerRad = 0.5;
|
||||
public static final double kAVoltSecondSquaredPerRad = 0.1;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ public class ArmSubsystem extends TrapezoidProfileSubsystem {
|
||||
new ExampleSmartMotorController(ArmConstants.kMotorPort);
|
||||
private final ArmFeedforward m_feedforward =
|
||||
new ArmFeedforward(
|
||||
ArmConstants.kSVolts, ArmConstants.kCosVolts,
|
||||
ArmConstants.kSVolts, ArmConstants.kGVolts,
|
||||
ArmConstants.kVVoltSecondPerRad, ArmConstants.kAVoltSecondSquaredPerRad);
|
||||
|
||||
/** Create a new ArmSubsystem. */
|
||||
|
||||
Reference in New Issue
Block a user