Skip to content

Commit

Permalink
oct 5 demo - actuator values
Browse files Browse the repository at this point in the history
  • Loading branch information
wocsor committed Sep 18, 2023
1 parent 1344474 commit c64bc78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/ocelot/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class CarInterface(CarInterfaceBase):
@staticmethod
def compute_gb(accel, speed):
def come_gb(accel, speed):
return float(accel) / 3.0

@staticmethod
Expand All @@ -26,7 +26,7 @@ def get_params(candidate, fingerprint=gen_empty_fingerprint(), car_fw=[]): # py
ret.carName = "ocelot"
ret.safetyModel = car.CarParams.SafetyModel.allOutput

ret.steerActuatorDelay = 0.12 # Default delay, Prius has larger delay
ret.steerActuatorDelay = 0. #0.12 # Default delay, Prius has larger delay
ret.steerLimitTimer = 0.4


Expand Down
8 changes: 4 additions & 4 deletions selfdrive/car/ocelot/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

# Steer torque limits
class SteerLimitParams:
STEER_MAX = 1500
STEER_DELTA_UP = 25 # 1.5s time to peak torque
STEER_DELTA_DOWN = 25 # always lower than 45 otherwise the Rav4 faults (Prius seems ok with 50)
STEER_ERROR_MAX = 1500 # max delta between torque cmd and torque motor
STEER_MAX = 1024 #1500
STEER_DELTA_UP = 128 #25 # 1.5s time to peak torque
STEER_DELTA_DOWN = 128 #25 # always lower than 45 otherwise the Rav4 faults (Prius seems ok with 50)
STEER_ERROR_MAX = 1024 #1500 # max delta between torque cmd and torque motor

class CAR:
SMART_ROADSTER_COUPE = "SMART ROADSTER COUPE 2003-2006"
Expand Down

0 comments on commit c64bc78

Please sign in to comment.