Merge cereal subtree

pull/806/head
Vehicle Researcher 6 years ago
commit f274a8e3b0
  1. 6
      cereal/car.capnp
  2. 33
      cereal/log.capnp

@ -79,6 +79,9 @@ struct CarEvent @0x9b1657f34caf3ad3 {
tooDistracted @54; tooDistracted @54;
posenetInvalid @55; posenetInvalid @55;
soundsUnavailable @56; soundsUnavailable @56;
preLaneChangeLeft @57;
preLaneChangeRight @58;
laneChange @59;
} }
} }
@ -300,6 +303,7 @@ struct CarParams {
minEnableSpeed @7 :Float32; minEnableSpeed @7 :Float32;
minSteerSpeed @8 :Float32; minSteerSpeed @8 :Float32;
safetyModel @9 :SafetyModel; safetyModel @9 :SafetyModel;
safetyModelPassive @42 :SafetyModel = noOutput;
safetyParam @10 :Int16; safetyParam @10 :Int16;
steerMaxBP @11 :List(Float32); steerMaxBP @11 :List(Float32);
@ -343,6 +347,7 @@ struct CarParams {
openpilotLongitudinalControl @37 :Bool; # is openpilot doing the longitudinal control? openpilotLongitudinalControl @37 :Bool; # is openpilot doing the longitudinal control?
carVin @38 :Text; # VIN number queried during fingerprinting carVin @38 :Text; # VIN number queried during fingerprinting
isPandaBlack @39: Bool; isPandaBlack @39: Bool;
dashcamOnly @41: Bool;
struct LateralPIDTuning { struct LateralPIDTuning {
kpBP @0 :List(Float32); kpBP @0 :List(Float32);
@ -398,6 +403,7 @@ struct CarParams {
chrysler @9; chrysler @9;
tesla @10; tesla @10;
subaru @11; subaru @11;
gmPassive @12;
} }
enum SteerControlType { enum SteerControlType {

@ -442,7 +442,7 @@ struct ControlsState @0x97ff69c53601abf1 {
alertSoundDEPRECATED @45 :Text; alertSoundDEPRECATED @45 :Text;
alertSound @56 :Car.CarControl.HUDControl.AudibleAlert; alertSound @56 :Car.CarControl.HUDControl.AudibleAlert;
awarenessStatus @26 :Float32; awarenessStatus @26 :Float32;
angleModelBias @27 :Float32; angleModelBiasDEPRECATED @27 :Float32;
gpsPlannerActive @40 :Bool; gpsPlannerActive @40 :Bool;
engageable @41 :Bool; # can OP be engaged? engageable @41 :Bool; # can OP be engaged?
driverMonitoringOn @43 :Bool; driverMonitoringOn @43 :Bool;
@ -516,8 +516,10 @@ struct ControlsState @0x97ff69c53601abf1 {
steerAngle @1 :Float32; steerAngle @1 :Float32;
i @2 :Float32; i @2 :Float32;
output @3 :Float32; output @3 :Float32;
lqrOutput @4 :Float32;
} }
} }
struct LiveEventData { struct LiveEventData {
@ -527,6 +529,7 @@ struct LiveEventData {
struct ModelData { struct ModelData {
frameId @0 :UInt32; frameId @0 :UInt32;
timestampEof @9 :UInt64;
path @1 :PathData; path @1 :PathData;
leftLane @2 :PathData; leftLane @2 :PathData;
@ -697,6 +700,32 @@ struct PathPlan {
sensorValid @14 :Bool; sensorValid @14 :Bool;
commIssue @15 :Bool; commIssue @15 :Bool;
posenetValid @16 :Bool; posenetValid @16 :Bool;
desire @17 :Desire;
laneChangeState @18 :LaneChangeState;
laneChangeDirection @19 :LaneChangeDirection;
enum Desire {
none @0;
turnLeft @1;
turnRight @2;
laneChangeLeft @3;
laneChangeRight @4;
keepLeft @5;
keepRight @6;
}
enum LaneChangeState {
off @0;
preLaneChange @1;
laneChangeStarting @2;
laneChangeFinishing @3;
}
enum LaneChangeDirection {
none @0;
left @1;
right @2;
}
} }
struct LiveLocationData { struct LiveLocationData {
@ -1726,6 +1755,8 @@ struct LiveMapData {
} }
struct CameraOdometry { struct CameraOdometry {
frameId @4 :UInt32;
timestampEof @5 :UInt64;
trans @0 :List(Float32); # m/s in device frame trans @0 :List(Float32); # m/s in device frame
rot @1 :List(Float32); # rad/s in device frame rot @1 :List(Float32); # rad/s in device frame
transStd @2 :List(Float32); # std m/s in device frame transStd @2 :List(Float32); # std m/s in device frame

Loading…
Cancel
Save