Hint: surround your code with [ code] and [ /code] tags. It'll preserve whitespace that way.
Code:
solenoidOne = new Solenoid(8,1);
solenoidTwo = new Solenoid (8,8);
What do you expect these two lines to do? In particular, what is the first "8" supposed to represent?
Code:
if(leftjoy.GetRawButton(Sol1)){
solenoidOne->Set(true);
solenoidTwo->Set(false);
}
else{
solenoidOne->Set(false);
solenoidTwo->Set(true);
}
This looks like a job for a dual solenoid instead of two single solenoids.