From 12bc1896523d7f98f8ecb7298a8182e0e31c56b2 Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Thu, 3 Oct 2019 18:32:53 -0400 Subject: [PATCH] Add fields and states required for robust Volkswagen safety compliance (#8) * Add fields and states required for robust Volkswagen safety compliance. * Add generic (manufacturer-independent) cruise-control button events in support of enhanced steering wheel or third stalk ACC control. * Add generic (manufacturer-independent) gearshift position definitions for Eco and Manumatic. * Add preEntry Event state, in support of generic (manufacturer-independent) strict safety model compliance. This is intended for later use in controlsd, to display NO_ENTRY alerts without attempting engagement. * Update Volkswagen safety model ID from "vw" to "volkswagen" to be consistent with the existing community port. * Remove the separate increase and decrease buttons. A different approach has been discussed and agreed to. * Per conversation with Riccardo, pulling the preEntry thing until later. --- car.capnp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/car.capnp b/car.capnp index 5662e980822f6e..0c0d33d31fa1e6 100644 --- a/car.capnp +++ b/car.capnp @@ -166,6 +166,8 @@ struct CarState { sport @5; low @6; brake @7; + eco @8; + manumatic @9; } @@ -184,6 +186,9 @@ struct CarState { altButton1 @6; altButton2 @7; altButton3 @8; + setCruise @9; + resumeCruise @10; + gapAdjustCruise @11; } } }