Skip to content

Commit

Permalink
standalone monitorstate (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZwX1616 authored Jan 28, 2020
1 parent 6eb1e36 commit 06f8d15
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,26 @@ struct CarParams {
apgs @7;
}
}

struct MonitorState {
events @0 :List(CarEvent);
driverState @1 :DriverState;

# TODO: deprecate old fields in controlsState
struct DriverState {
faceDetected @0 :Bool;
isDistracted @1 :Bool;
awarenessStatus @2 :Float32;
isRHD @3 :Bool;
rhdChecked @4 :Bool;
posePitchOffset @5 :Float32;
posePitchValidCount @6 :UInt32;
poseYawOffset @7 :Float32;
poseYawValidCount @8 :UInt32;
stepChange @9 :Float32;
awarenessActive @10 :Float32;
awarenessPassive @11 :Float32;
isLowStd @12 :Bool;
hiStdCount @13 :UInt32;
}
}
1 change: 1 addition & 0 deletions service_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ thumbnail: [8069, true, 0.2, 1]
carEvents: [8070, true, 1., 1]
carParams: [8071, true, 0.02, 1]
frontFrame: [8072, true, 10.]
monitorState: [8073, true, 5., 1]

testModel: [8040, false, 0.]
testLiveLocation: [8045, false, 0.]
Expand Down

0 comments on commit 06f8d15

Please sign in to comment.