@ -220,23 +220,17 @@ class CarInterface(CarInterfaceBase):
ret . lateralTuning . pid . kpV , ret . lateralTuning . pid . kiV = [ [ 0.2 ] , [ 0.06 ] ]
ret . lateralTuning . pid . kpV , ret . lateralTuning . pid . kiV = [ [ 0.2 ] , [ 0.06 ] ]
tire_stiffness_factor = 0.677
tire_stiffness_factor = 0.677
elif candidate == CAR . ODYSSEY :
elif candidate in ( CAR . ODYSSEY , CAR . ODYSSEY_CHN ) :
ret . mass = 4471. * CV . LB_TO_KG + STD_CARGO_KG
ret . mass = 1900. + STD_CARGO_KG
ret . wheelbase = 3.00
ret . wheelbase = 3.00
ret . centerToFront = ret . wheelbase * 0.41
ret . centerToFront = ret . wheelbase * 0.41
ret . steerRatio = 14.35 # as spec
ret . steerRatio = 14.35 # as spec
ret . lateralParams . torqueBP , ret . lateralParams . torqueV = [ [ 0 , 4096 ] , [ 0 , 4096 ] ] # TODO: determine if there is a dead zone at the top end
tire_stiffness_factor = 0.82
ret . lateralTuning . pid . kpV , ret . lateralTuning . pid . kiV = [ [ 0.28 ] , [ 0.08 ] ]
elif candidate == CAR . ODYSSEY_CHN :
ret . mass = 1849.2 + STD_CARGO_KG # mean of 4 models in kg
ret . wheelbase = 2.90
ret . centerToFront = ret . wheelbase * 0.41 # from CAR.ODYSSEY
ret . steerRatio = 14.35
ret . lateralParams . torqueBP , ret . lateralParams . torqueV = [ [ 0 , 32767 ] , [ 0 , 32767 ] ] # TODO: determine if there is a dead zone at the top end
tire_stiffness_factor = 0.82
tire_stiffness_factor = 0.82
ret . lateralTuning . pid . kpV , ret . lateralTuning . pid . kiV = [ [ 0.28 ] , [ 0.08 ] ]
ret . lateralTuning . pid . kpV , ret . lateralTuning . pid . kiV = [ [ 0.28 ] , [ 0.08 ] ]
if candidate == CAR . ODYSSEY_CHN :
ret . lateralParams . torqueBP , ret . lateralParams . torqueV = [ [ 0 , 32767 ] , [ 0 , 32767 ] ] # TODO: determine if there is a dead zone at the top end
else :
ret . lateralParams . torqueBP , ret . lateralParams . torqueV = [ [ 0 , 4096 ] , [ 0 , 4096 ] ] # TODO: determine if there is a dead zone at the top end
elif candidate in ( CAR . PILOT , CAR . PASSPORT ) :
elif candidate in ( CAR . PILOT , CAR . PASSPORT ) :
ret . mass = 4204. * CV . LB_TO_KG + STD_CARGO_KG # average weight
ret . mass = 4204. * CV . LB_TO_KG + STD_CARGO_KG # average weight