@name Robotboy655's Wire Gate: Delta (Rectified)
@inputs Value
@outputs Out
@persist PrevValue
@model models/jaanus/wiretool/wiretool_gate.mdl

Out = (mod((mod(Value - PrevValue,360) + 540),360) - 180)
PrevValue = Value
