From b1a1afebb8533a96ff0e8efbba7c10eb47df2af0 Mon Sep 17 00:00:00 2001 From: Mitchell Goff Date: Wed, 27 Sep 2023 16:38:06 -0700 Subject: [PATCH] Added reserved fields for body controls (#537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added bodyReserved0-2 text fields * Added bodyReserved0 to services list * add more bodyReserved to servcies py * bodyReserved -> customReservedText * :Text -> :Data --------- Co-authored-by: Kacper Rączy --- log.capnp | 4 ++++ services.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/log.capnp b/log.capnp index 70efde241..4a59ca8d3 100644 --- a/log.capnp +++ b/log.capnp @@ -2265,6 +2265,10 @@ struct Event { livestreamWideRoadEncodeData @121 :EncodeData; livestreamDriverEncodeData @122 :EncodeData; + customReservedRawData0 @124 :Data; + customReservedRawData1 @125 :Data; + customReservedRawData2 @126 :Data; + # *********** Custom: reserved for forks *********** customReserved0 @107 :Custom.CustomReserved0; customReserved1 @108 :Custom.CustomReserved1; diff --git a/services.py b/services.py index 915398afb..9c08e6352 100755 --- a/services.py +++ b/services.py @@ -95,6 +95,9 @@ def __init__(self, port: int, should_log: bool, frequency: float, decimation: Op "livestreamWideRoadEncodeData": (False, 20.), "livestreamRoadEncodeData": (False, 20.), "livestreamDriverEncodeData": (False, 20.), + "customReservedRawData0": (True, 0.), + "customReservedRawData1": (True, 0.), + "customReservedRawData2": (True, 0.), } SERVICE_LIST = {name: Service(new_port(idx), *vals) for idx, (name, vals) in enumerate(services.items())}