whole new family (#23157)

* family two

* more volume

* repeating dm sound

* update tests
old-commit-hash: 1501c2e3768bc3469b56a9eca846db9f971ec81d
This commit is contained in:
Adeeb Shihadeh
2021-12-07 13:45:49 -08:00
committed by GitHub
parent cabd6c6b95
commit 9c702c779e
10 changed files with 24 additions and 24 deletions
LFS Regular → Executable
BIN
View File
Binary file not shown.
LFS Regular → Executable
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b9e126f394f2412a6edda83fa739d472e4bb921300e5eeecb2e3e122cd4e8f8d
size 152148
oid sha256:c9ffc442480bcb415a0ca2940d06610f4b12ab463aede0deca6f50c984b64234
size 64634
BIN
View File
Binary file not shown.
LFS Regular → Executable
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5e3b2d20d604902eb19fb773bce89fa6fdc9a7e0610ec6ac729fd1512455f98
size 133412
oid sha256:7777a27d12fb0a6f3bdd1175ea7b6b9a6bf3bd63e245da1414eb3a4bb12eafaf
size 153644
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -10,7 +10,7 @@
class HardwareTici : public HardwareNone {
public:
static constexpr float MAX_VOLUME = 0.9;
static constexpr float MIN_VOLUME = 0.15;
static constexpr float MIN_VOLUME = 0.3;
static bool TICI() { return true; }
static std::string get_os_version() {
return "AGNOS " + util::read_file("/VERSION");
+1 -1
View File
@@ -13,7 +13,7 @@ const std::tuple<AudibleAlert, QString, int> sound_list[] = {
{AudibleAlert::PROMPT, "prompt.wav", 0},
{AudibleAlert::PROMPT_REPEAT, "prompt.wav", QSoundEffect::Infinite},
{AudibleAlert::PROMPT_DISTRACTED, "prompt_distracted.wav", 0},
{AudibleAlert::PROMPT_DISTRACTED, "prompt_distracted.wav", QSoundEffect::Infinite},
{AudibleAlert::WARNING_SOFT, "warning_soft.wav", QSoundEffect::Infinite},
{AudibleAlert::WARNING_IMMEDIATE, "warning_immediate.wav", 10},
+8 -8
View File
@@ -15,14 +15,14 @@ AudibleAlert = car.CarControl.HUDControl.AudibleAlert
SOUNDS = {
# sound: total writes
AudibleAlert.none: 0,
AudibleAlert.engage: 197,
AudibleAlert.disengage: 230,
AudibleAlert.refuse: 189,
AudibleAlert.prompt: 230,
AudibleAlert.promptRepeat: 520,
AudibleAlert.promptDistracted: 187,
AudibleAlert.warningSoft: 499,
AudibleAlert.warningImmediate: 496,
AudibleAlert.engage: 184,
AudibleAlert.disengage: 186,
AudibleAlert.refuse: 194,
AudibleAlert.prompt: 184,
AudibleAlert.promptRepeat: 487,
AudibleAlert.promptDistracted: 508,
AudibleAlert.warningSoft: 471,
AudibleAlert.warningImmediate: 470,
}
def get_total_writes():