Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Add Gains constructor that sets up all values
Browse files Browse the repository at this point in the history
  • Loading branch information
ange1a-j14 committed Jul 20, 2020
1 parent 9d946d8 commit 8f459f1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/harkerrobolib/util/Gains.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ public class Gains {
private double kD;
private int iZone;

public Gains kF (double kF) { this.kF = kF; return this;}
public Gains(double kF, double kP, double kI, double kD, int iZone)
{
this.kF = kF;
this.kP = kP;
this.kI = kI;
this.kD = kD;
this.iZone = iZone;
}

public Gains kF (double kF) {this.kF = kF; return this;}
public Gains kP (double kP) {this.kP = kP; return this;}
public Gains kI (double kI) {this.kI = kI; return this;}
public Gains kD (double kD) {this.kD = kD; return this;}
Expand Down

0 comments on commit 8f459f1

Please sign in to comment.