mirror of
https://github.com/commaai/msgq.git
synced 2026-06-13 00:14:32 +08:00
add microphone (#382)
* add microphone socket * increase freq * add raw noise level * rename to ambient * switch
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -76,6 +76,7 @@ services = {
|
||||
"navThumbnail": (True, 0.),
|
||||
"qRoadEncodeIdx": (False, 20.),
|
||||
"userFlag": (True, 0., 1),
|
||||
"microphone": (True, 10., 10),
|
||||
|
||||
# debug
|
||||
"uiDebug": (True, 0., 1),
|
||||
|
||||
Reference in New Issue
Block a user