forked from nilsso/mips-myps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
229 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
tankC = d0 | ||
tankH = d1 | ||
tTMinDisp = d2 | ||
tTMaxDisp = d3 | ||
tFDisp = d4 | ||
pFDisp = d5 | ||
|
||
def AdvancedFurnace = 545937711 | ||
|
||
def BLUE = 0 | ||
def RED = 4 | ||
def YELLOW = 5 | ||
|
||
tTMinDisp.On = 1 | ||
tTMaxDisp.On = 1 | ||
tFDisp.On = 1 | ||
pFDisp.On = 1 | ||
tTMinDisp.Color = BLUE | ||
tTMaxDisp.Color = RED | ||
tFDisp.Color = YELLOW | ||
pFDisp.Color = YELLOW | ||
loop: | ||
yield() | ||
tTMinDisp.Setting = tankC.Temperature | ||
tTMaxDisp.Setting = tankH.Temperature | ||
tFDisp.Setting = AdvancedFurnace.all.Temperature.avg | ||
pFDisp.Setting = AdvancedFurnace.all.Pressure.avg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
importantStartButton = d0 | ||
validatorControl = d1 | ||
furnaceControl = d2 | ||
tTDisp = d3 | ||
pTDisp = d4 | ||
progressDisp = d5 | ||
|
||
def BLUE = 0 | ||
def GREEN = 2 | ||
|
||
tTDisp.On = 0 | ||
tTDisp.On = 0 | ||
progressDisp.On = 0 | ||
tTDisp.Color = GREEN | ||
tTDisp.Color = GREEN | ||
progressDisp.Color = BLUE | ||
|
||
loop: | ||
yield() | ||
targetCode = validatorControl.Setting | ||
importantStartButton.On = (targetCode > 0) | ||
|
||
if importantStartButton.Setting: | ||
# going to assume that furnaceControl.Setting is -1 by here | ||
tT = (targetCode % 1000) * 10 | ||
pT = trunc(targetCode / 1000) * 100 | ||
|
||
tTDisp.On = 1 | ||
pTDisp.On = 1 | ||
progressDisp.On = 1 | ||
tTDisp.Setting = tT | ||
pTDisp.Setting = pT | ||
progressDisp.Setting = 0 | ||
|
||
furnaceControl.Setting = targetCode | ||
yield() | ||
while furnaceControl.Setting != -1: | ||
progressDisp.Setting = furnaceControl.Setting | ||
yield() | ||
pTDisp.On = 0 | ||
tTDisp.On = 0 | ||
progressDisp.On = 0 |
28 changes: 0 additions & 28 deletions
28
myps/test-scripts/factory/furnace/validator-dispatcher.myps
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.