Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Nov 9, 2019
1 parent 60a33f8 commit 86454df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ public void update() {
double t = clock.seconds() - turnStart;

MotionState targetState = turnProfile.get(t);

turnController.setTargetPosition(targetState.getX());

double targetOmega = targetState.getV();
double targetAlpha = targetState.getA();
double correction = turnController.update(currentPose.getHeading(), targetOmega);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ public void update() {
double t = clock.seconds() - turnStart;

MotionState targetState = turnProfile.get(t);

turnController.setTargetPosition(targetState.getX());

double targetOmega = targetState.getV();
double targetAlpha = targetState.getA();
double correction = turnController.update(currentPose.getHeading(), targetOmega);
Expand Down

0 comments on commit 86454df

Please sign in to comment.