/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Servo;


/**
 *
 * @author robotics
 */
public class Pan {
       private boolean prevState=false;
       Servo walls;
       private final int PORT=8;
       
    public Pan(){
       walls = new Servo(PORT);
       
    }
    public void set(double value){
        walls.set(value);
    }
    public double get(){
       return walls.get();
    }
    public boolean getPrevState(){
        return prevState;
    }
    public void setState(boolean newState){
        this.prevState=newState;
    }
    public void changeState(){
        prevState=!prevState;
    }
    public void endGame(){ //verify directionality
        walls.set(1); //walls fall
    }
    public void resetServo(){
        walls.set(0); //servo resets for next time
    }
    
  
}

@@ -889,9 +889,9 @@
 set(
-1
+0
 ); /
@@ -901,16 +901,38 @@
 lls fall
+ //changed from 1 to 0
 %0A    %7D%0A 
@@ -974,25 +974,25 @@
   walls.set(
-0
+1
 ); //servo r
@@ -1010,16 +1010,38 @@
 ext time
+ //changed from 0 to 1
 %0A    %7D%0A 

change wall setting methods