Skip to content

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
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.

1 participant