Skip to content

Commit

Permalink
Increase Volt's steering limit (commaai#351)
Browse files Browse the repository at this point in the history
* Increase Volt's steering limit

* Merge panda subtree
  • Loading branch information
vntarasov authored and rbiasini committed Sep 22, 2018
1 parent 96c9238 commit 2d450bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion panda/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.4
v1.1.5
2 changes: 1 addition & 1 deletion panda/board/safety/safety_gm.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// brake rising edge
// brake > 0mph

const int GM_MAX_STEER = 255;
const int GM_MAX_STEER = 300;
const int GM_MAX_RT_DELTA = 128; // max delta torque allowed for real time checks
const int32_t GM_RT_INTERVAL = 250000; // 250ms between real time checks
const int GM_MAX_RATE_UP = 7;
Expand Down
2 changes: 1 addition & 1 deletion panda/tests/safety/test_gm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

MAX_RATE_UP = 7
MAX_RATE_DOWN = 17
MAX_STEER = 255
MAX_STEER = 300
MAX_BRAKE = 350
MAX_GAS = 3072
MAX_REGEN = 1404
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/car/gm/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class CarControllerParams():
def __init__(self, car_fingerprint):
if car_fingerprint == CAR.VOLT:
self.STEER_MAX = 255
self.STEER_MAX = 300
self.STEER_STEP = 2 # how often we update the steer cmd
self.STEER_DELTA_UP = 7 # ~0.75s time to peak torque (255/50hz/0.75s)
self.STEER_DELTA_DOWN = 17 # ~0.3s from peak torque to zero
Expand Down

0 comments on commit 2d450bc

Please sign in to comment.