Skip to content

Update gas_interceptor_threshold due to experiments wth RDX and Odyssey - #117

Closed
joeljacobs wants to merge 1 commit into
commaai:masterfrom
joeljacobs:master
Closed

Update gas_interceptor_threshold due to experiments wth RDX and Odyssey#117
joeljacobs wants to merge 1 commit into
commaai:masterfrom
joeljacobs:master

Conversation

@joeljacobs

Copy link
Copy Markdown

This new threshold value was arrived at through experimentation with the RDX and Odyssey. Values much lower than this would cause OP to suddenly disengage due to anomolies with the Gas Pedal analog readings.

@joeljacobs

Copy link
Copy Markdown
Author

This PR goes along with My Pedal OP PR


// these are set in the Honda safety hooks...this is the wrong place
const int gas_interceptor_threshold = 328;
const int gas_interceptor_threshold = 800;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As we were discussing on the other PR, this should be 120/0.2539 (+1 to be slightly conservative and not false trigger panda cancellations before openpilot does) in order to be consistent with opendbc and openpilot. If this threshold does not work, we should figure out why.

@joeljacobs joeljacobs May 22, 2018

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I know that 600 did not work, so 472 would surely not work. If I set it higher, occasional momentary gas signal spikes (either a-to-d or physical pedal anomaly) will cause OP to throw a "controls mismatch" error.
However, leaving the dbc to -120 doesn't seem to cause OP disengagements with the same spikes. If I went lower than 120, it would completely disengage (which was especially dangerous when braking is involved.)
I don't know why it seems the dbc is more forgiving.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I should note that it does a good job knowing it should disengage when I press on the gas with these settings.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"I don't know why it seems the dbc is more forgiving." <-- yeah... this needs to be figured out before we can merge changes.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Could it have anything to do with the GAS2 value? If you divide 120 by 0.126992032, you get a much closer value of 944.94.

@geohot geohot closed this Apr 2, 2020
dzid26 pushed a commit to dzid26/panda that referenced this pull request Jul 3, 2026
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