set canValid for mock car
This commit is contained in:
parent
4d5733924a
commit
ea06941d4d
|
@ -63,6 +63,7 @@ class CarInterface(CarInterfaceBase):
|
|||
|
||||
# create message
|
||||
ret = car.CarState.new_message()
|
||||
ret.canValid = True
|
||||
|
||||
# speeds
|
||||
ret.vEgo = self.speed
|
||||
|
@ -82,9 +83,6 @@ class CarInterface(CarInterfaceBase):
|
|||
curvature = self.yaw_rate / max(self.speed, 1.)
|
||||
ret.steeringAngle = curvature * self.CP.steerRatio * self.CP.wheelbase * CV.RAD_TO_DEG
|
||||
|
||||
events = []
|
||||
ret.events = events
|
||||
|
||||
return ret.as_reader()
|
||||
|
||||
def apply(self, c):
|
||||
|
|
Loading…
Reference in a new issue