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

Toyota: Follow accel request more accurately #554

Draft
wants to merge 17 commits into
base: SA-master
Choose a base branch
from
Draft

Conversation

sshane
Copy link
Owner

@sshane sshane commented Jan 12, 2022

Have a net predict an accurate accel request to follow the desired plan, specific to how Toyota responds to acceleration commands.

Input (training) -> [current aEgo, future aEgo]
Input (inference) -> [current aDesired, lag compensated aDesired]
Output -> [current accel cmd]

@sshane sshane changed the title Follow accel request more accurately Toyota: Follow accel request more accurately Jan 12, 2022
@@ -44,7 +58,7 @@ def update(self, enabled, active, CS, frame, actuators, pcm_cancel_cmd, hud_aler
interceptor_gas_cmd = clip(pedal_command, 0., MAX_INTERCEPTOR_GAS)
else:
interceptor_gas_cmd = 0.
pcm_accel_cmd = clip(actuators.accel, CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
pcm_accel_cmd = clip(accel_predict(CS.out.aEgo, actuators.accel), CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Supposed to just be feedforward, we'll see how this goes

Update carcontroller.py
new model

fix
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

Successfully merging this pull request may close these issues.

None yet

1 participant