@name Artillery
@inputs Pod:wirelink
@outputs Length Turn Fire
@persist 
@trigger 

interval(25)

if (first() | duped()) {
    Length = 50
}

W = Pod["W",number]
S = Pod["S",number]
A = Pod["A",number]
D = Pod["D",number]
Space = Pod["Space",number]
Shift = Pod["Shift",number]

Speed = Shift+1
if (W & Length > 50) {
    Length-=1*Speed
}
if (S & Length < 100) {
    Length+=1*Speed
}
Turn = (D-A)*Speed
Fire = Space
