Skip to content

Commit 0dab7a2

Browse files
committed
Remove dynamic gas references
1 parent 52c41bf commit 0dab7a2

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Want to request a feature or create a bug report? [Open an issue here!](https://
1515
* **Lane Speed**
1616
* [**Lane Speed Alerts**](#Lane-Speed-alerts) - alerts for when an adjacent lane is faster
1717
* [**~~Dynamic camera offsetting~~ (removed temporarily)**](#Dynamic-camera-offset-based-on-oncoming-traffic) - moves you over if adjacent lane has oncoming traffic
18-
* [**~~Dynamic gas~~**](#dynamic-gas) - smoother gas control
18+
* [**~~Dynamic gas~~** (no longer needed)](#dynamic-gas) - smoother gas control
1919
* [**~~Adding derivative to PI for better control~~**](#pi---pid-controller-for-long-and-lat) - lat: smoother control in turns; long: fix for comma pedal overshoot
2020

2121
### General Features

selfdrive/controls/lib/longcontrol.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from selfdrive.controls.lib.pid import PIDController
55
from selfdrive.controls.lib.drive_helpers import CONTROL_N
66
from selfdrive.modeld.constants import T_IDXS
7-
from selfdrive.controls.lib.dynamic_gas import DynamicGas
87
from common.op_params import opParams
98

109
LongCtrlState = car.CarControl.Actuators.LongControlState
@@ -60,9 +59,6 @@ def __init__(self, CP):
6059
self.v_pid = 0.0
6160
self.last_output_accel = 0.0
6261

63-
# self.op_params = opParams()
64-
# self.dynamic_gas = DynamicGas(CP, candidate)
65-
6662
def reset(self, v_pid):
6763
"""Reset PID controller and change setpoint"""
6864
self.pid.reset()
@@ -97,9 +93,6 @@ def update(self, active, CS, CP, long_plan, accel_limits, extras):
9793
accel_limits[1] = 1.6
9894
self.pid.pos_limit = accel_limits[1]
9995

100-
# if self.op_params.get('dynamic_gas'):
101-
# gas_max = self.dynamic_gas.update(CS, extras)
102-
10396
# Update state machine
10497
output_accel = self.last_output_accel
10598
self.long_control_state = long_control_state_trans(CP, active, self.long_control_state, CS.vEgo,

0 commit comments

Comments
 (0)