From 8f13dfcaf2189b740e4d045b52756413663e5852 Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Mon, 30 Mar 2020 17:53:01 -0700 Subject: [PATCH] Additional car params auto-detection in support of VW (#38) * Add enum for installed location in car network * Add electric vehicle/direct drive to transmission enum * Better naming of direct-drive variant --- car.capnp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/car.capnp b/car.capnp index 858a2be..77b8cdc 100644 --- a/car.capnp +++ b/car.capnp @@ -381,6 +381,7 @@ struct CarParams { radarTimeStep @45: Float32 = 0.05; # time delta between radar updates, 20Hz is very standard communityFeature @46: Bool; # true if a community maintained feature is detected fingerprintSource @49: FingerprintSource; + networkLocation @50 :NetworkLocation; # Where Panda/C2 is integrated into the car's CAN network struct LateralParams { torqueBP @0 :List(Int32); @@ -458,8 +459,9 @@ struct CarParams { enum TransmissionType { unknown @0; - automatic @1; - manual @2; + automatic @1; # Traditional auto, including DSG + manual @2; # True "stick shift" only + direct @3; # Electric vehicle or other direct drive } struct CarFw { @@ -498,4 +500,9 @@ struct CarParams { fw @1; fixed @2; } + + enum NetworkLocation { + fwdCamera @0; # Standard/default integration at LKAS camera + gateway @1; # Integration at vehicle's CAN gateway + } }