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

contolsd: combine active and enabled #23849

Closed
wants to merge 4 commits into from
Closed

contolsd: combine active and enabled #23849

wants to merge 4 commits into from

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Feb 24, 2022

Refactor of values that describe if openpilot is enabled or not, as enabled being all states except preEnable (from gas press) is confusing from the perspective of the car controllers. Now they explicitly check for gas pressed when dealing with longitudinal.

Also steers while in pre-enable state so whether openpilot will steer while gas is pressed isn't different based on a toggle

Resolves one of the pre-reqs for #23588

This was referenced Feb 24, 2022
@sshane sshane changed the title Steer while in pre-enable state contolsd: combine active and enabled Feb 24, 2022
@sshane sshane marked this pull request as draft February 24, 2022 06:37
@adeebshihadeh
Copy link
Contributor

I think we decided that preEnabled will stay as is if disengage on gas is enabled, right @pd0wm?

@pd0wm
Copy link
Contributor

pd0wm commented Feb 24, 2022

@adeebshihadeh That is correct. Panda needs to block steering while gas is pressed if disengage on gas is enabled.

@sshane
Copy link
Contributor Author

sshane commented Feb 24, 2022

This PR is rather big so I'll make sure no behavior changes here

@sshane
Copy link
Contributor Author

sshane commented Feb 25, 2022

Moved to #23859

@sshane sshane closed this Feb 25, 2022
@sshane sshane deleted the pre-enable-steer branch February 25, 2022 09:29
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.

3 participants