Skip to content

Commit

Permalink
Additional car params auto-detection in support of VW (emmertex#38)
Browse files Browse the repository at this point in the history
* Add enum for installed location in car network

* Add electric vehicle/direct drive to transmission enum

* Better naming of direct-drive variant
  • Loading branch information
jyoung8607 authored Mar 31, 2020
1 parent 22986de commit 8f13dfc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}
}

0 comments on commit 8f13dfc

Please sign in to comment.