Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zigzag acceleration is being formed #12

Open
Ridhwanluthra opened this issue Feb 8, 2017 · 0 comments
Open

zigzag acceleration is being formed #12

Ridhwanluthra opened this issue Feb 8, 2017 · 0 comments

Comments

@Ridhwanluthra
Copy link
Contributor

Ridhwanluthra commented Feb 8, 2017

In control function when delta_distance is close to 0, zigzag accel is being formed. it continues to switch between control based on cruise speed and control based on safe distance.
will have to find a more elegant solution than

if delta_distance < 0:
        state['maintaining_distance'] = True
    elif speed >= cruise_speed:
        state['maintaining_distance'] = False```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant