Skip to content

Commit

Permalink
Merge remote-tracking branch 'comma/la_model' into la
Browse files Browse the repository at this point in the history
  • Loading branch information
rav4kumar committed Jan 21, 2024
2 parents 5945b99 + ef63632 commit 0ae331d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ struct CarEvent @0x9b1657f34caf3ad3 {
parkBrake @29;
manualRestart @30;
lowSpeedLockout @31;
plannerError @32;
joystickDebug @34;
steerTempUnavailableSilent @35;
resumeRequired @36;
Expand Down Expand Up @@ -142,6 +141,7 @@ struct CarEvent @0x9b1657f34caf3ad3 {
startupFuzzyFingerprintDEPRECATED @97;
noTargetDEPRECATED @25;
brakeUnavailableDEPRECATED @2;
plannerErrorDEPRECATED @32;
}
}

Expand Down
21 changes: 21 additions & 0 deletions log.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ struct ModelDataV2 {

# e2e lateral planner
lateralPlannerSolution @25: LateralPlannerSolution;
action @26: Action;

struct LeadDataV2 {
prob @0 :Float32; # probability that car is your lead at time t
Expand Down Expand Up @@ -915,6 +916,9 @@ struct ModelDataV2 {
desireState @5 :List(Float32);
disengagePredictions @6 :DisengagePredictions;
hardBrakePredicted @7 :Bool;
laneChangeState @8 :LaneChangeState;
laneChangeDirection @9 :LaneChangeDirection;


# deprecated
brakeDisengageProbDEPRECATED @2 :Float32;
Expand Down Expand Up @@ -956,6 +960,23 @@ struct ModelDataV2 {
yawRateStd @7 :List(Float32);
}

enum LaneChangeState {
off @0;
preLaneChange @1;
laneChangeStarting @2;
laneChangeFinishing @3;
}

enum LaneChangeDirection {
none @0;
left @1;
right @2;
}

struct Action {
desiredCurvature @0 :Float32;
}

}

struct EncodeIndex {
Expand Down

0 comments on commit 0ae331d

Please sign in to comment.