Skip to content

Commit

Permalink
modified: src/pathplanner.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ariannagavioli committed Jan 8, 2019
1 parent 29380e1 commit fca016f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pathplanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ char pathPlanner(vehicle_t *c) {
/***** FRONT DISTANCE RESPONSE *****/
if (c->ds.dsts[MID_DST] < DST_FROM_FRONTOBSTACLE) {
c->Vr = 0; // Brakes before hit front wall or front block
if (c->yr < STREET_W / 2 + 5) {
if ((c->yr < STREET_W / 2 + 5) || (c->xr < STREET_W / 2 + 5)) {
stopppedByTL = 2;
}
/***********************************/
Expand Down

0 comments on commit fca016f

Please sign in to comment.