fixed missing cereal

This commit is contained in:
Rick Lan
2024-07-07 00:24:43 +08:00
parent 7b1f958810
commit 665e929537
3 changed files with 28 additions and 2 deletions
+26 -1
View File
@@ -26,7 +26,32 @@ enum LaneChangeAssistMode {
auto @3;
}
struct CustomReserved2 @0xf35cc4560bbf6ec2 {
struct TeToo @0xf35cc4560bbf6ec2 {
lat @0 :Float32;
lon @1 :Float32;
bearing @2 :Float32;
name @3 :Text;
maxspeed @4 :Float32;
tags @5 :Text;
updatingData @6 :Bool;
nearestFeatures @7 :List(Feature);
struct Feature {
id @0 :Text;
type @1 :FeatureType;
lat @2 :Float32;
lon @3 :Float32;
bearing @4 :Float32;
distance @5 :Float32;
tags @6 :Text;
}
enum FeatureType {
trafficSignal @0;
speedCamera @1;
}
}
struct CustomReserved3 @0xda96579883444c35 {
+1 -1
View File
@@ -2351,7 +2351,7 @@ struct Event {
# *********** Custom: reserved for forks ***********
controlsStateExt @107 :Custom.ControlsStateExt;
longitudinalPlanExt @108 :Custom.LongitudinalPlanExt;
customReserved2 @109 :Custom.CustomReserved2;
teToo @109 :Custom.TeToo;
customReserved3 @110 :Custom.CustomReserved3;
customReserved4 @111 :Custom.CustomReserved4;
customReserved5 @112 :Custom.CustomReserved5;
+1
View File
@@ -91,6 +91,7 @@ _services: dict[str, tuple] = {
# dp
"controlsStateExt": (False, 100., 10),
"longitudinalPlanExt": (False, 20., 5),
"teToo": (False, 5),
}
SERVICE_LIST = {name: Service(*vals) for
idx, (name, vals) in enumerate(_services.items())}