Skip to content

Commit

Permalink
Correct arm gravity FF
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Dec 23, 2018
1 parent 48f93b3 commit fbe5a11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Arm(HardwareMap hardwareMap) {
// of motion (e.g., gravity, kinetic friction, or a combination thereof), it may be
// beneficial to compensate for it here (assuming no velocity PID) like so:
// e.g., controller = new PIDFController(PID, kV, kA, kStatic,
// angle -> kA * 9.81 * Math.cos(angle - VERT_ANGLE));
// angle -> kA * 9.81 * Math.sin(angle - VERT_ANGLE));
controller = new PIDFController(PID, kV, kA, kStatic);
offset = motor.getCurrentPosition();
}
Expand Down

0 comments on commit fbe5a11

Please sign in to comment.