/**
 * 
 */
package org.usfirst.frc.team2339.Barracuda.smartdashboard;

import edu.wpi.first.wpilibj.Sendable;
import edu.wpi.first.wpilibj.tables.ITable;

/**
 * Display choices and accept input for Robolopes autonomous
 * 
 * @author RobolopesDev
 *
 */
public class AutoSettings implements Sendable {
	
    private ITable table;
    private SendableTimeVelocity forward;
    private SendableTimeSpeed lift;
    private SendableTimeVelocity back;

	/* (non-Javadoc)
	 * @see edu.wpi.first.wpilibj.Sendable#initTable(edu.wpi.first.wpilibj.tables.ITable)
	 */
	@Override
	public void initTable(ITable subtable) {
        this.table = subtable;
        if (table != null) {
            table.putValue("forward", forward);
            table.putValue("lift", lift);
            table.putValue("back", back);
        }
	}

	/* (non-Javadoc)
	 * @see edu.wpi.first.wpilibj.Sendable#getTable()
	 */
	@Override
	public ITable getTable() {
		return table;
	}

	/* (non-Javadoc)
	 * @see edu.wpi.first.wpilibj.Sendable#getSmartDashboardType()
	 */
	@Override
	public String getSmartDashboardType() {
		return "Robolopes Autonomous Settings";
	}

}

@@ -979,32 +979,512 @@
 n table;%0D%0A%09%7D%0D%0A%0D%0A
+%09public SendableTimeVelocity getForward() %7B%0D%0A%09%09if (getTable() != null) %7B%0D%0A%09%09%09return (SendableTimeVelocity)getTable().getValue(%22forward%22);%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A%09public SendableTimeSpeed getLift() %7B%0D%0A%09%09if (getTable() != null) %7B%0D%0A%09%09%09return (SendableTimeSpeed)getTable().getValue(%22lift%22);%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A%09public SendableTimeVelocity getBack() %7B%0D%0A%09%09if (getTable() != null) %7B%0D%0A%09%09%09return (SendableTimeVelocity)getTable().getValue(%22back%22);%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%0D%0A
 %09/* (non-Javadoc

Add get methods to auto settings