All you would have to change is this part of the code assuming you keep Booleons named the same:
Code:
if(Piston){
piston.Set(Relay::kForward);
} else if (!Piston){
piston.Set(Relay::kReverse);
}
To something like this:
Code:
if(Piston){
Talon1.Set(Stick.GetY()); // Where as the talon1 would be controlled by the Y axis of the Joystick
} else if (!Piston){
Talon2.Set(Stick.GetY());// Where as another talon, talon2, would be controlled by the Y axis of the Joystick
}