whole new family (#23157)

* family two

* more volume

* repeating dm sound

* update tests
This commit is contained in:
Adeeb Shihadeh
2021-12-07 13:45:49 -08:00
committed by GitHub
parent af275af38f
commit 1501c2e376
10 changed files with 10 additions and 10 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
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():