Total Complexity | 6 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package org.usfirst.frc.team3695.robot.util; |
||
6 | public class Field { |
||
|
|||
7 | public static Position getOurScale() { |
||
8 | if (DriverStation.getInstance().getGameSpecificMessage().charAt(0) == 'L') { |
||
9 | return Position.LEFT; |
||
10 | } else { |
||
11 | return Position.RIGHT; |
||
12 | } |
||
13 | } |
||
14 | |||
15 | public static Position getThierScale() { |
||
16 | if (DriverStation.getInstance().getGameSpecificMessage().charAt(2) == 'L') { |
||
17 | return Position.LEFT; |
||
18 | } else { |
||
19 | return Position.RIGHT; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | public static Position getSwitch() { |
||
24 | if (DriverStation.getInstance().getGameSpecificMessage().charAt(1) == 'L') { |
||
25 | return Position.LEFT; |
||
26 | } else { |
||
27 | return Position.RIGHT; |
||
28 | } |
||
31 |