package com.saintsrobotics.frc;

import com.saintsrobotics.frc.logging.Log;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.DriverStationEnhancedIO;
import edu.wpi.first.wpilibj.DriverStationEnhancedIO.EnhancedIOException;
import edu.wpi.first.wpilibj.DriverStationLCD;

/**
 * Communicate with the driver station.
 * @author Saints Robotics
 */
public class DriverStationComm {
    private static final int FIRST_COLUMN = 1;
    private static final DriverStation driverStation =
            DriverStation.getInstance();
    private static final DriverStationEnhancedIO driverStationIO =
            driverStation.getEnhancedIO();
    private static final DriverStationLCD driverStationLCD =
            DriverStationLCD.getInstance();
    
    /**
     * Disallow instantiation.
     */
    private DriverStationComm() {}
    
    public static void printMessage(String message, DriverStationLCD.Line line) {
        printMessage(message, line, FIRST_COLUMN);
    }
    
    public static void printMessage(String message, DriverStationLCD.Line line,
            int startingColumn) {
        if (message.length() > DriverStationLCD.kLineLength) {
            message = message.substring(0, DriverStationLCD.kLineLength);
        }
        
        driverStationLCD.println(line, startingColumn, message);
        driverStationLCD.updateLCD();
    }
    
    public static void setLED(int channel, boolean on) {
        try {
            driverStationIO.setLED(channel, on);
        } catch (EnhancedIOException exception) {
            Log.log(exception);
        }
    }
}

@@ -855,147 +855,552 @@
     
-public static void printMessage(String message, DriverStationLCD.Line line) %7B%0A        printMessage(message, line, FIRST_COLUMN);%0A    %7D%0A    
+/**%0A     * Print a message to the %22User messages%22 box in the driver station.%0A     * @param message the message to be printed%0A     * @param line the line number%0A     */%0A    public static void printMessage(String message, DriverStationLCD.Line line) %7B%0A        printMessage(message, line, FIRST_COLUMN);%0A    %7D%0A    %0A    /**%0A     * Print a message to the %22User messages%22 box in the driver station.%0A     * @param message the message to be printed%0A     * @param line the line number%0A     * @param startingColumn the column to start printing to%0A     */
 %0A   
@@ -1776,24 +1776,159 @@
 %0A    %7D%0A    %0A
+    /**%0A     * Set the state of the LED lights.%0A     * @param channel the LED channel%0A     * @param on true to turn the LED on%0A     */%0A
     public s

Comment DriverStationComm