add microphone (#382)

* add microphone socket

* increase freq

* add raw noise level

* rename to ambient

* switch
This commit is contained in:
Cameron Clough
2022-11-28 12:51:57 -08:00
committed by GitHub
parent 72fb965dcf
commit 2b54c11052
2 changed files with 9 additions and 0 deletions

View File

@@ -1961,6 +1961,11 @@ struct EncodeData {
struct UserFlag {
}
struct Microphone {
ambientNoiseLevelRaw @0 :Float32;
filteredAmbientNoiseLevel @1 :Float32;
}
struct Event {
logMonoTime @0 :UInt64; # nanoseconds
valid @67 :Bool = true;
@@ -2020,6 +2025,9 @@ struct Event {
wideRoadEncodeIdx @77 :EncodeIndex;
qRoadEncodeIdx @90 :EncodeIndex;
# microphone data
microphone @103 :Microphone;
# systems stuff
androidLog @20 :AndroidLogEntry;
managerState @78 :ManagerState;

View File

@@ -76,6 +76,7 @@ services = {
"navThumbnail": (True, 0.),
"qRoadEncodeIdx": (False, 20.),
"userFlag": (True, 0., 1),
"microphone": (True, 10., 10),
# debug
"uiDebug": (True, 0., 1),