Skip to content

Commit

Permalink
min gas command seen in my c3 dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
csouers committed Dec 21, 2023
1 parent 2240d06 commit c27be73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion board/safety/safety_honda.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LongitudinalLimits HONDA_BOSCH_LONG_LIMITS = {
.min_accel = -350,

.max_gas = 2000,
.min_gas = -13,
.min_gas = -40,
.inactive_gas = -30000,
};

Expand Down
2 changes: 2 additions & 0 deletions tests/safety/test_honda.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,9 @@ class TestHondaBoschLongSafety(HondaButtonEnableBase, TestHondaBoschSafetyBase):
"""
Covers the Honda Bosch safety mode with longitudinal control
"""
# TODO: correct gas factor to match dbc
NO_GAS = -30000
MIN_GAS = -4.0
MAX_GAS = 2000
MAX_ACCEL = 2.0 # accel is used for brakes, but openpilot can set positive values
MIN_ACCEL = -3.5
Expand Down

0 comments on commit c27be73

Please sign in to comment.