Skip to content

Commit

Permalink
Only release when acceleration is less than ZERO_GAS
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamezz committed Jul 28, 2018
1 parent e83de33 commit a9732ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/gm/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def update(self, sendcan, enabled, CS, frame, actuators, \
if (frame % 4) == 0:
idx = (frame / 4) % 4

want_full_stop = enabled and CS.standstill and apply_gas < 1
want_full_stop = enabled and CS.standstill and apply_gas < P.ZERO_GAS
near_stop = enabled and (CS.v_ego < P.NEAR_STOP_BRAKE_PHASE)
can_sends.append(gmcan.create_friction_brake_command(self.packer_ch, canbus.chassis, apply_brake, idx, near_stop, want_full_stop))

Expand Down

0 comments on commit a9732ec

Please sign in to comment.