diff --git a/cereal/custom.capnp b/cereal/custom.capnp index 8c23743420..75ce712c8b 100644 --- a/cereal/custom.capnp +++ b/cereal/custom.capnp @@ -203,7 +203,34 @@ struct BackupManagerSP @0xf98d843bfd7004a3 { } } -struct CustomReserved7 @0xb86e6369214c01c8 { +struct LiveMapDataSP @0xb86e6369214c01c8 { + speedLimitValid @0 :Bool; + speedLimit @1 :Float32; + speedLimitAheadValid @2 :Bool; + speedLimitAhead @3 :Float32; + speedLimitAheadDistance @4 :Float32; + turnSpeedLimitValid @5 :Bool; + turnSpeedLimit @6 :Float32; + turnSpeedLimitEndDistance @7 :Float32; + turnSpeedLimitSign @8 :Int16; + turnSpeedLimitsAhead @9 :List(Float32); + turnSpeedLimitsAheadDistances @10 :List(Float32); + turnSpeedLimitsAheadSigns @11 :List(Int16); + lastGpsTimestamp @12 :Int64; # Milliseconds since January 1, 1970. + currentRoadName @13 :Text; + lastGpsLatitude @14 :Float64; + lastGpsLongitude @15 :Float64; + lastGpsSpeed @16 :Float32; + lastGpsBearingDeg @17 :Float32; + lastGpsAccuracy @18 :Float32; + lastGpsBearingAccuracyDeg @19 :Float32; + dataType @20 :DataType; + + enum DataType { + default @0; + offline @1; + online @2; + } } struct CustomReserved8 @0xf416ec09499d9d19 { diff --git a/cereal/log.capnp b/cereal/log.capnp index 0efeeffb1b..baf64f08d2 100644 --- a/cereal/log.capnp +++ b/cereal/log.capnp @@ -2606,7 +2606,7 @@ struct Event { carParamsSP @111 :Custom.CarParamsSP; carControlSP @112 :Custom.CarControlSP; backupManagerSP @113 :Custom.BackupManagerSP; - customReserved7 @114 :Custom.CustomReserved7; + liveMapDataSP @114 :Custom.LiveMapDataSP; customReserved8 @115 :Custom.CustomReserved8; customReserved9 @116 :Custom.CustomReserved9; customReserved10 @136 :Custom.CustomReserved10;