@ -89,44 +89,51 @@ class GMPlatformConfig(PlatformConfig):
dbc_dict : DbcDict = field ( default_factory = lambda : dbc_dict ( ' gm_global_a_powertrain_generated ' , ' gm_global_a_object ' , chassis_dbc = ' gm_global_a_chassis ' ) )
@dataclass
class GMASCMPlatformConfig ( GMPlatformConfig ) :
def init ( self ) :
# ASCM is supported, but due to a janky install and hardware configuration, we are not showing in the car docs
self . car_docs = [ ]
class CAR ( Platforms ) :
HOLDEN_ASTRA = GMPlatformConfig (
HOLDEN_ASTRA = GMASCM PlatformConfig (
[ GMCarDocs ( " Holden Astra 2017 " ) ] ,
GMCarSpecs ( mass = 1363 , wheelbase = 2.662 , steerRatio = 15.7 , centerToFrontRatio = 0.4 ) ,
)
CHEVROLET_VOLT = GMPlatformConfig (
CHEVROLET_VOLT = GMASCM PlatformConfig (
[ GMCarDocs ( " Chevrolet Volt 2017-18 " , min_enable_speed = 0 , video_link = " https://youtu.be/QeMCN_4TFfQ " ) ] ,
GMCarSpecs ( mass = 1607 , wheelbase = 2.69 , steerRatio = 17.7 , centerToFrontRatio = 0.45 , tireStiffnessFactor = 0.469 ) ,
)
CADILLAC_ATS = GMPlatformConfig (
CADILLAC_ATS = GMASCM PlatformConfig (
[ GMCarDocs ( " Cadillac ATS Premium Performance 2018 " ) ] ,
GMCarSpecs ( mass = 1601 , wheelbase = 2.78 , steerRatio = 15.3 ) ,
)
CHEVROLET_MALIBU = GMPlatformConfig (
CHEVROLET_MALIBU = GMASCM PlatformConfig (
[ GMCarDocs ( " Chevrolet Malibu Premier 2017 " ) ] ,
GMCarSpecs ( mass = 1496 , wheelbase = 2.83 , steerRatio = 15.8 , centerToFrontRatio = 0.4 ) ,
)
GMC_ACADIA = GMPlatformConfig (
GMC_ACADIA = GMASCM PlatformConfig (
[ GMCarDocs ( " GMC Acadia 2018 " , video_link = " https://www.youtube.com/watch?v=0ZN6DdsBUZo " ) ] ,
GMCarSpecs ( mass = 1975 , wheelbase = 2.86 , steerRatio = 14.4 , centerToFrontRatio = 0.4 ) ,
)
BUICK_LACROSSE = GMPlatformConfig (
BUICK_LACROSSE = GMASCM PlatformConfig (
[ GMCarDocs ( " Buick LaCrosse 2017-19 " , " Driver Confidence Package 2 " ) ] ,
GMCarSpecs ( mass = 1712 , wheelbase = 2.91 , steerRatio = 15.8 , centerToFrontRatio = 0.4 ) ,
)
BUICK_REGAL = GMPlatformConfig (
BUICK_REGAL = GMASCM PlatformConfig (
[ GMCarDocs ( " Buick Regal Essence 2018 " ) ] ,
GMCarSpecs ( mass = 1714 , wheelbase = 2.83 , steerRatio = 14.4 , centerToFrontRatio = 0.4 ) ,
)
CADILLAC_ESCALADE = GMPlatformConfig (
CADILLAC_ESCALADE = GMASCM PlatformConfig (
[ GMCarDocs ( " Cadillac Escalade 2017 " , " Driver Assist Package " ) ] ,
GMCarSpecs ( mass = 2564 , wheelbase = 2.95 , steerRatio = 17.3 ) ,
)
CADILLAC_ESCALADE_ESV = GMPlatformConfig (
CADILLAC_ESCALADE_ESV = GMASCM PlatformConfig (
[ GMCarDocs ( " Cadillac Escalade ESV 2016 " , " Adaptive Cruise Control (ACC) & LKAS " ) ] ,
GMCarSpecs ( mass = 2739 , wheelbase = 3.302 , steerRatio = 17.3 , tireStiffnessFactor = 1.0 ) ,
)
CADILLAC_ESCALADE_ESV_2019 = GMPlatformConfig (
CADILLAC_ESCALADE_ESV_2019 = GMASCM PlatformConfig (
[ GMCarDocs ( " Cadillac Escalade ESV 2019 " , " Adaptive Cruise Control (ACC) & LKAS " ) ] ,
CADILLAC_ESCALADE_ESV . specs ,
)