Skip to content

Commit

Permalink
Drive view use feedforward factory (fixes FIRST-Tech-Challenge#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Oct 15, 2023
1 parent 57db0dc commit 42246e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TeamCode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ dependencies {
implementation project(':FtcRobotController')
annotationProcessor files('lib/OpModeAnnotationProcessor.jar')

implementation "com.acmerobotics.roadrunner:ftc:0.1.7"
implementation "com.acmerobotics.roadrunner:ftc:0.1.8"
implementation "com.acmerobotics.dashboard:dashboard:0.4.13"
}
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static void register(OpModeManager manager) {
perpEncs,
md.imu,
md.voltageSensor,
new MotorFeedforward(MecanumDrive.PARAMS.kS,
() -> new MotorFeedforward(MecanumDrive.PARAMS.kS,
MecanumDrive.PARAMS.kV / MecanumDrive.PARAMS.inPerTick,
MecanumDrive.PARAMS.kA / MecanumDrive.PARAMS.inPerTick)
);
Expand Down Expand Up @@ -140,7 +140,7 @@ public static void register(OpModeManager manager) {
perpEncs,
td.imu,
td.voltageSensor,
new MotorFeedforward(TankDrive.PARAMS.kS,
() -> new MotorFeedforward(TankDrive.PARAMS.kS,
TankDrive.PARAMS.kV / TankDrive.PARAMS.inPerTick,
TankDrive.PARAMS.kA / TankDrive.PARAMS.inPerTick)
);
Expand Down

0 comments on commit 42246e0

Please sign in to comment.