Skip to content

Commit

Permalink
StarPilot
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar5683 committed Sep 23, 2024
1 parent 04a39b7 commit 56de635
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 8 deletions.
Binary file modified selfdrive/assets/img_spinner_comma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 1 addition & 6 deletions selfdrive/car/gm/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,7 @@ def torque_from_lateral_accel_neural(self, latcontrol_inputs: LatControlInputs,
return float(self.neural_ff_model.predict(inputs)) + friction

def torque_from_lateral_accel(self) -> TorqueFromLateralAccelCallbackType:
if self.CP.carFingerprint in (CAR.CHEVROLET_BOLT_EUV, CAR.CHEVROLET_BOLT_CC):
self.neural_ff_model = NanoFFModel(NEURAL_PARAMS_PATH, self.CP.carFingerprint)
return self.torque_from_lateral_accel_neural
elif self.CP.carFingerprint in NON_LINEAR_TORQUE_PARAMS:
return self.torque_from_lateral_accel_siglin
else:
return self.torque_from_lateral_accel_linear

@staticmethod
def _get_params(ret, candidate, fingerprint, car_fw, disable_openpilot_long, experimental_long, docs, params):
Expand Down Expand Up @@ -232,6 +226,7 @@ def _get_params(ret, candidate, fingerprint, car_fw, disable_openpilot_long, exp
elif candidate in (CAR.CHEVROLET_BOLT_EUV, CAR.CHEVROLET_BOLT_CC):
ret.steerActuatorDelay = 0.2
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)
ret.lateralTuning.torque.kp = 0.6

if ret.enableGasInterceptor:
# ACC Bolts use pedal for full longitudinal control, not just sng
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/car/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def configure_torque_tune(candidate, tune, steering_angle_deadzone_deg=0.0, use_

tune.init('torque')
tune.torque.useSteeringAngle = use_steering_angle
tune.torque.kp = 1.0
tune.torque.kp = 0.6
tune.torque.kf = 1.0
tune.torque.ki = 0.1
tune.torque.friction = params['FRICTION']
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified selfdrive/frogpilot/assets/other_images/original_bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified selfdrive/frogpilot/fleetmanager/static/frog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion selfdrive/frogpilot/fleetmanager/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
text-align: center;
}
</style>
<title>FrogPilot: {% block title %}{% endblock %}</title>
<title>StarPilot: {% block title %}{% endblock %}</title>
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-expand-sm navbar-dark bg-dark">
Expand Down
Binary file modified system/fleetmanager/static/frog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56de635

Please sign in to comment.