Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 06f8d15

Browse files
authored
standalone monitorstate (#23)
1 parent 6eb1e36 commit 06f8d15

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

car.capnp

+23
Original file line numberDiff line numberDiff line change
@@ -473,3 +473,26 @@ struct CarParams {
473473
apgs @7;
474474
}
475475
}
476+
477+
struct MonitorState {
478+
events @0 :List(CarEvent);
479+
driverState @1 :DriverState;
480+
481+
# TODO: deprecate old fields in controlsState
482+
struct DriverState {
483+
faceDetected @0 :Bool;
484+
isDistracted @1 :Bool;
485+
awarenessStatus @2 :Float32;
486+
isRHD @3 :Bool;
487+
rhdChecked @4 :Bool;
488+
posePitchOffset @5 :Float32;
489+
posePitchValidCount @6 :UInt32;
490+
poseYawOffset @7 :Float32;
491+
poseYawValidCount @8 :UInt32;
492+
stepChange @9 :Float32;
493+
awarenessActive @10 :Float32;
494+
awarenessPassive @11 :Float32;
495+
isLowStd @12 :Bool;
496+
hiStdCount @13 :UInt32;
497+
}
498+
}

service_list.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ thumbnail: [8069, true, 0.2, 1]
7575
carEvents: [8070, true, 1., 1]
7676
carParams: [8071, true, 0.02, 1]
7777
frontFrame: [8072, true, 10.]
78+
monitorState: [8073, true, 5., 1]
7879

7980
testModel: [8040, false, 0.]
8081
testLiveLocation: [8045, false, 0.]

0 commit comments

Comments
 (0)