From 7734f2b3540ce0a3f9b2605c8a8ccca5d5a84cba Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sun, 15 Jun 2025 21:21:47 -0400 Subject: [PATCH] updated params --- coolant_driver.lua | 6 +++--- speaker_driver.lua | 28 ++++++++++++++++++++++++---- temperature_driver.lua | 4 ++-- turbine_driver.lua | 6 +++--- 4 files changed, 32 insertions(+), 12 deletions(-) diff --git a/coolant_driver.lua b/coolant_driver.lua index 01025e5..ea6cee1 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -1,6 +1,6 @@ -local maxValue = 80 -local minValue = 50 -local minCoolant = 30 +local maxValue = 100 +local minValue = 20 +local minCoolant = 10 local function getValue() return (reactor.getCoolantFilledPercentage() or 1) * 100 diff --git a/speaker_driver.lua b/speaker_driver.lua index 4b0a704..87b76b2 100644 --- a/speaker_driver.lua +++ b/speaker_driver.lua @@ -1,6 +1,7 @@ local dfpwm = require("cc.audio.dfpwm") local encoder = dfpwm.make_encoder() local decoder = dfpwm.make_decoder() +local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/" local function getFileName(name) local extension = ".dfpwm" @@ -33,13 +34,22 @@ local function playInternalAlarm(speakers) playSound(speakers,"internal_alarm") end +local function playTTSFile() + -- local ttsRoute = "https://ttsmp3.com/makemp3_new.php" + -- local fileName = "tts" + + -- local response = http.request({ + -- url = url, + -- method = "POST", + -- body = body, + -- headers = headers, + -- binary = false + -- }) +end local function createSoundFile(fileName) - --local placeholder = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/placeholder.dfpwm" - local baseRoute = "https://git.astrocore.space/root/NovaCorpLLC/raw/branch/main/" local name = getFileName(fileName) local fullPath = baseRoute .. name - shell.execute("rm", name) local response = http.request({ url = fullPath, @@ -47,6 +57,7 @@ local function createSoundFile(fileName) binary = true }) + local event, url, handle repeat event, url, handle = os.pullEvent() @@ -99,4 +110,13 @@ end local function report() end -return { report = report, watch = watch, startup = startup, shutdown = shutdown, playControlRoomAlarm = playControlRoomAlarm, addSoundFile = addSoundFile, playExternalAlarm = playExternalAlarm, playInternalAlarm = playInternalAlarm } \ No newline at end of file +return { report = report, + watch = watch, + startup = startup, + shutdown = shutdown, + playControlRoomAlarm = playControlRoomAlarm, + addSoundFile = addSoundFile, + playExternalAlarm = playExternalAlarm, + playInternalAlarm = playInternalAlarm, + playTTSFile = playTTSFile +} \ No newline at end of file diff --git a/temperature_driver.lua b/temperature_driver.lua index 506d73c..e407c2e 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -1,5 +1,5 @@ -local max = 300 -local min = 275 +local max = 315 +local min = 280 local function getValue() diff --git a/turbine_driver.lua b/turbine_driver.lua index f301f6e..58a0870 100644 --- a/turbine_driver.lua +++ b/turbine_driver.lua @@ -1,6 +1,6 @@ -local max = 90 -local maxVent = 60 -local minVent = 80 +local max = 95 +local maxVent = 80 +local minVent = 90 local min = 20 local function getValue()