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

code mistake in velocity compute #16

Open
ChenChenGith opened this issue Jun 9, 2021 · 0 comments
Open

code mistake in velocity compute #16

ChenChenGith opened this issue Jun 9, 2021 · 0 comments

Comments

@ChenChenGith
Copy link

vel_x, vel_y = zip(*[(
x_coord[i] - x_coord[i - 1] /
(float(timestamp[i]) - float(timestamp[i - 1])),
y_coord[i] - y_coord[i - 1] /
(float(timestamp[i]) - float(timestamp[i - 1])),
) for i in range(1, len(timestamp))])

Missing '()' in x_coord[i] - x_coord[i - 1] and y_coord[i] - y_coord[i - 1], which leads to huge velocity. Vehicles will always be judged to be not stationary.

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