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

Fix/throttle override not published #319

Open
wants to merge 23 commits into
base: maint/throttle-override
Choose a base branch
from

Conversation

cotos
Copy link
Contributor

@cotos cotos commented Oct 8, 2018

Creating a branch to send throttle override fix to Sungwoo Mobile

rebpdx and others added 23 commits June 26, 2018 17:10
Prior to this commit the brake request was set to unsigned float which does not
exist. This commit fixes that by changing the value to a signed float.
Add signed value to brake request
Prior to this commit custom applications that required rapid and changes to the steering wheel position were able to programatically apply enough torque to artificially trigger operator override. This resulted in applications where the steering module disabled in unintended ways. This commit addresses that by increasing the torque required to trigger operator override without significantly impeding the a safety driver's ability to trigger override by manually turning the steering wheel. After this commit applications that require rapid changes to steering angle position should not result in any unintended disabling of the steering module.
Prior to this commit the parallel builds did not have a docker.build command
causing multiple workers to be missing a docker container to work in. This
commit fixes that by adding the build command to ensure that each worker node
has a container to use.
…e-torque

Increase required steering torque to override
Prior to this commit failed builds would leave a dirty working directory. This
commit fixes that by adding a try, finally block to make sure the directory is
cleaned.
Prior to this commit the checkout call was outside the try block. This commit
fixes that by moving the checkout into the try block incase it fails and the
working directory still needs to be cleaned up.
Prior to this commit some builds would fail trying to clean up the workspace
directory. This commit fixes that by removing the inner cleanup since the try
block for the parallel builds should catch any errors from workspace builds.
…de-threshold

reduce BREAK_PEDAL_OVERRIDE_THRESHOLD
Prior to thie commit the signal, "throttle_operator_override" in the message, "THROTTLE_REPORT(0x93)" did not report a status of driver's throttle override, whereas, the signal, "throttle_report_enabled" in the same message reports properly. The override report signals of steering/brake works well.

The operator override was being generated but not published.

Fix:
Used operator override logic the brake is using.

Verification:
Ran `https://github.com/PolySync/oscc-check/blob/master/oscc-check.py` to enable all modules.  Performed a throttle operator override.

Verified throttle operator overide

```
$ candump can0,093:7FF
  can0  093   [8]  05 CC 01 00 00 B5 08 B8
  can0  093   [8]  05 CC 01 00 00 B5 08 B8
  can0  093   [8]  05 CC 01 00 00 5F 02 1F
  can0  093   [8]  05 CC 00 01 02 B5 08 B8
  can0  093   [8]  05 CC 00 01 02 B5 08 B8
  can0  093   [8]  05 CC 00 01 02 B5 08 B8
```
@cotos cotos requested review from a user and kenkeiter October 8, 2018 22:43
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

4 participants