Updated some comments that mention the cRIO

Change-Id: Ib5e3c34fa2db83f48ca88153e8f4c834b31291f5
This commit is contained in:
Thomas Clark
2014-08-05 11:17:38 -04:00
parent 1be31431bc
commit 9ff420547a
8 changed files with 49 additions and 52 deletions

View File

@@ -23,9 +23,9 @@ import edu.wpi.first.wpilibj.tables.ITableListener;
/**
* The preferences class provides a relatively simple way to save important
* values to the cRIO to access the next time the cRIO is booted.
* values to the RoboRIO to access the next time the RoboRIO is booted.
*
* <p>This class loads and saves from a file inside the cRIO. The user can not
* <p>This class loads and saves from a file inside the RoboRIO. The user can not
* access the file directly, but may modify values at specific fields which will
* then be saved to the file when {@link Preferences#save() save()} is
* called.</p>
@@ -457,10 +457,10 @@ public class Preferences {
}
/**
* Saves the preferences to a file on the cRIO.
* Saves the preferences to a file on the RoboRIO.
*
* <p>This should <b>NOT</b> be called often. Too many writes can damage the
* cRIO's flash memory. While it is ok to save once or twice a match, this
* RoboRIO's flash memory. While it is ok to save once or twice a match, this
* should never be called every run of
* {@link IterativeRobot#teleopPeriodic()}.</p>
*
@@ -499,9 +499,9 @@ public class Preferences {
if (file.exists())
file.delete();
file.createNewFile();
output = new FileOutputStream(file);
for (int i = 0; i < keys.size(); i++) {
@@ -585,8 +585,8 @@ public class Preferences {
Comment comment = null;
File file = null;
FileInputStream input = null;
try {

View File

@@ -76,7 +76,6 @@ public abstract class SensorBase { // TODO: Refactor
/**
* Verify that the solenoid module is correct.
* Module numbers are 1 or 2 (they are no longer real cRIO slots).
*
* @param moduleNumber The solenoid module module number to check.
*/

View File

@@ -12,7 +12,7 @@ import edu.wpi.first.wpilibj.visa.Visa;
import edu.wpi.first.wpilibj.visa.VisaException;
/**
* Driver for the RS-232 serial port on the cRIO.
* Driver for the RS-232 serial port on the RoboRIO.
*
* The current implementation uses the VISA formatted I/O mode. This means that
* all traffic goes through the formatted buffers. This allows the intermingled
@@ -161,7 +161,7 @@ public class SerialPort {
/**
* Create an instance of a Serial Port class.
*
* @param baudRate The baud rate to configure the serial port. The cRIO-9074 supports up to 230400 Baud.
* @param baudRate The baud rate to configure the serial port.
* @param dataBits The number of data bits per transfer. Valid values are between 5 and 8 bits.
* @param parity Select the type of parity checking to use.
* @param stopBits The number of stop bits to use as defined by the enum StopBits.
@@ -203,7 +203,7 @@ public class SerialPort {
/**
* Create an instance of a Serial Port class. Defaults to one stop bit.
*
* @param baudRate The baud rate to configure the serial port. The cRIO-9074 supports up to 230400 Baud.
* @param baudRate The baud rate to configure the serial port.
* @param dataBits The number of data bits per transfer. Valid values are between 5 and 8 bits.
* @param parity Select the type of parity checking to use.
*/
@@ -215,7 +215,7 @@ public class SerialPort {
* Create an instance of a Serial Port class. Defaults to no parity and one
* stop bit.
*
* @param baudRate The baud rate to configure the serial port. The cRIO-9074 supports up to 230400 Baud.
* @param baudRate The baud rate to configure the serial port.
* @param dataBits The number of data bits per transfer. Valid values are between 5 and 8 bits.
*/
public SerialPort(final int baudRate, final int dataBits) throws VisaException {
@@ -226,7 +226,7 @@ public class SerialPort {
* Create an instance of a Serial Port class. Defaults to 8 databits,
* no parity, and one stop bit.
*
* @param baudRate The baud rate to configure the serial port. The cRIO-9074 supports up to 230400 Baud.
* @param baudRate The baud rate to configure the serial port.
*/
public SerialPort(final int baudRate) throws VisaException {
this(baudRate, 8, Parity.kNone, StopBits.kOne);

View File

@@ -1153,7 +1153,7 @@ public class NIVision {
}
/**
* Set true to be able to create files on cRio
* Set true to be able to create files on RoboRIO
* @param val true allows files to be created
*/
public static void setWriteFileAllowed(boolean val) {