Skip to content

Commit

Permalink
Fix bug in computing target distance
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrplz committed Aug 26, 2017
1 parent 7b0d9e0 commit 64486c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_11_path_planning/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ int main() {

// Calculate how to break up spline points to travel at reference velocity
double target_x = 30.0;
double target_y = s(target_y);
double target_y = s(target_x);
double target_dist = sqrt(target_x * target_x + target_y * target_y);

double x_add_on = 0.0;
Expand Down

0 comments on commit 64486c2

Please sign in to comment.