Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Prg: TurboPressureRegulator by swagman
- #Man: https://youtu.be/ReuxBHLlC0I
- define Vout 200 #out pipe volume
- alias TVPump d0
- alias PresIn d1
- alias PresOt d2
- alias Target d3
- alias LedDis d4
- loop:
- l r0 PresOt Pressure
- l r1 PresIn Pressure
- l r2 Target Setting
- s LedDis Setting r0
- sub r2 r2 r0
- sltz r3 r2
- select r4 r3 r0 r1
- mul r2 r2 Vout
- div r2 r2 r4
- abs r2 r2
- s TVPump Mode r3
- s TVPump Setting r2
- yield
- s TVPump Setting 0
- yield
- j loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement