/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.stuy.subsystems;

import edu.stuy.RobotMap;
import edu.wpi.first.wpilibj.Servo;
import edu.wpi.first.wpilibj.command.Subsystem;

/**
 *
 * @author Yulli
 */
public class Camera extends Subsystem {
    // Put methods for controlling this subsystem
    // here. Call these from Commands.
    private static final int LOWER_ANGLE = 105;
    private static final int UPPER_ANGLE = 180;

    Servo camServo;
    
    public Camera(){
       camServo = new Servo(RobotMap.CAMERA_SERVO);
       
    }
    public void initDefaultCommand() {
        // Set the default command for a subsystem here.
        //setDefaultCommand(new MySpecialCommand());
    }
    
    public void switchView(boolean down){
        if(down){
            camServo.setAngle(LOWER_ANGLE);
        }
        else {
            camServo.setAngle(UPPER_ANGLE);
        }
    }
    
}

@@ -435,17 +435,17 @@
 NGLE = 1
-0
+1
 5;%0A    p

Modify camera angle from 105 to 115 degrees.