-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.sciborgs1155.robot; | ||
|
||
/** | ||
* Constants is a globally accessible class for storing immutable values. Every value should be | ||
* <code>public static final</code>. | ||
* | ||
* <p>It is advised to statically import this class (or one of its inner classes) wherever the | ||
* constants are needed, to reduce verbosity. | ||
* | ||
* <p><b>Units</b> | ||
* | ||
* <ul> | ||
* <li>length: meters | ||
* <li>time: seconds | ||
* <li>angle: radians | ||
* </ul> | ||
* | ||
* @see MotorConfig | ||
* @see Conversion | ||
* @see PIDConstants | ||
* @see Constraints | ||
*/ | ||
public final class Constants { | ||
public static final double PERIOD = 0.02; | ||
|
||
public static class OI { | ||
public static final int DRIVER = 1; | ||
public static final int OPERATOR = 0; | ||
} | ||
} |