package org.usfirst.frc.team4536.robot;

import edu.wpi.first.wpilibj.Solenoid;

public class Platform {
	
	Solenoid rightSolenoid;
	Solenoid leftSolenoid;
	
	
	public Platform(int rightSolenoidChannel, int leftSolenoidChannel) {	
		rightSolenoid = new Solenoid(rightSolenoidChannel);
		leftSolenoid = new Solenoid(leftSolenoidChannel);
	}	
	
	public boolean get() {
		
		return rightSolenoid.get(); // true = extended, false = retracted. This code works because the values must be opposite of each other and only come in 2 combinations.x
	}
	
	public void extend() {
		
		rightSolenoid.set(true);
		leftSolenoid.set(false);
	}
	
	public void retract() {
		
		rightSolenoid.set(false);
		leftSolenoid.set(true);	
	}
	
	public void flip() {
		
		rightSolenoid.set(!rightSolenoid.get());
		leftSolenoid.set(!leftSolenoid.get());	
	}

}

@@ -78,16 +78,99 @@
 oid;%0D%0A%0D%0A
+/*%0D%0A*Suggested improvement: There needs to be comments in this class! Caleb%0D%0A*/%0D%0A%0D%0A
 public c
@@ -428,24 +428,161 @@
 el);%0D%0A%09%7D%09%0D%0A%09
+/*%0D%0A%09*Suggested improvement: change method name from %22get%22 to something more intuitive, such as %22isExtended%22 or %22isRetracted.%22 Caleb%0D%0A%09*/
 %0D%0A%09public bo

Update Platform.java