From f3a5a430a5bbbf49a4aa76d0ca35ceeec0f67c20 Mon Sep 17 00:00:00 2001 From: Comma Device Date: Tue, 22 Aug 2023 18:24:00 -0400 Subject: [PATCH] add second temperatureSensor and reduce freq --- log.capnp | 1 + services.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/log.capnp b/log.capnp index 42cef5172..70efde241 100644 --- a/log.capnp +++ b/log.capnp @@ -2188,6 +2188,7 @@ struct Event { magnetometer @95 :SensorEventData; lightSensor @96 :SensorEventData; temperatureSensor @97 :SensorEventData; + temperatureSensor2 @123 :SensorEventData; pandaStates @81 :List(PandaState); peripheralState @80 :PeripheralState; radarState @13 :RadarState; diff --git a/services.py b/services.py index d68a9010a..a7673229e 100755 --- a/services.py +++ b/services.py @@ -27,7 +27,8 @@ def __init__(self, port: int, should_log: bool, frequency: float, decimation: Op "accelerometer2": (True, 100., 100), "magnetometer": (True, 25., 25), "lightSensor": (True, 100., 100), - "temperatureSensor": (True, 100., 100), + "temperatureSensor": (True, 2., 200), + "temperatureSensor2": (True, 2., 200), "gpsNMEA": (True, 9.), "deviceState": (True, 2., 1), "can": (True, 100., 1223), # decimation gives ~5 msgs in a full segment