-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
GM: no speed limit to resume #352
Conversation
class AccState: | ||
OFF = 0 | ||
ACTIVE = 1 | ||
FAULTED = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vntarasov , have you seen the AccState becoming FAULTED for other reasons other than the low speed lockout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I think I understand what you mean: in this case the AccState will become FAULTED only immediately after the engagement. Does it stay FAULTED or it clears after you stop commanding gas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, let me find someone willing to test it on 2018 Volt. On my 2017 Volt, speed-related FAULTED clears out as soon as openpilot disengages, but I haven't tested it on 2018 models. It would be rather inconvenient if PCM stays faulted.
Re: other ways to get to FAULTED: There was a bug with "isActive" vs "isEnabled", where PCM would go to FAULTED (for a few seconds on 2017 Volts, and until ACC is reset on 2018), fixed in #352. I don't know of other ways to get it to FAULTED other than stop sending keepalive messages (same GasRegenCmd, with "enabled" = False).
behavior makes sense. Probably would not fault if you were commanding brakes, so it waits for a certain number of Gas commands before faulting. |
@rbiasini, there doesn't seem to be a trivial way to trick PCM to accelerate from below previously known limits :( I tried various combinations of
Everything would fault out PCM the same way, at same speed limits: going to "1" for a few messages, then to "3 - faulted". Obviously there must be a way for FCB to kick in somehow, but I don't have a cabana logs for stock FCB, and chances are commanding gas would still not work from there. |
@rbiasini PCM fault in question clears on 2018 Volt as well, as soon as OP disengages. |
@vntarasov , I'm ok merging this. Any more tests to be done you think? |
@rbiasini, the only quirk is that the first time user presses "res" instead of "set", the message is "speed too low" instead of 'first engage must be through "set" ' |
@vntarasov mmm... but that's unrelated to this change, right? |
The solution is to not make the resume button an ENABLE event if there is no set prior set speed. Will reopen when done. |
long_mpc-TR presets
* debug * Revert lat changes for Corolla TSS2 and Prius * Revert some Prius tuning * Update safetyParam for TSS2 Corolla * Fix safetyParams * Add back TSS2 Corolla INDI tune * Update custom RAV4 DBCs * Revert kf tuning for TSS1 Corolla
Remove "18mph to engage" limit, through catching a PCM fault and showing the same "Speed too low" error instead.
Pros:
Cons: