LGTM fixes (#1480)

old-commit-hash: 008700a6b39c3fefe1233fca9adf85cb3413b5b8
This commit is contained in:
Adeeb
2020-05-09 16:40:43 -07:00
committed by GitHub
parent 45dbdac80b
commit 64b69bda50
10 changed files with 14 additions and 26 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import cereal.messaging as messaging
from opendbc.can.parser import CANParser
#from opendbc.can.parser import CANParser
from opendbc.can.packer import CANPacker
from selfdrive.boardd.boardd_api_impl import can_list_to_can_capnp
from selfdrive.car.honda.values import FINGERPRINTS, CAR
+1 -3
View File
@@ -1,5 +1,3 @@
import numpy as np
class FakeSteeringWheel():
def __init__(self, dt=0.01):
# physical params
@@ -13,7 +11,7 @@ class FakeSteeringWheel():
self.angle = 0. # start centered
# self.omega = 0.
def response(self, torque, vego=0):
exerted_torque = torque * self.DAC
# centering_torque = np.clip(-(self.centering_k * self.angle), -1.1, 1.1)