Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 43765cc

Browse files
committed
Re-add hardware map to RobotBase to avoid breaking changes
Signed-off-by: Ethan Hampton <[email protected]>
1 parent 1af7c0b commit 43765cc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Robot/RobotBase.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@
1616
*/
1717

1818
public class RobotBase {
19-
19+
/**
20+
* Try not to use the hardware map any more than you need it.
21+
* If you do need it, it will do the job just fine
22+
*/
23+
@Deprecated
24+
public HardwareMap hardwareMap;
2025
private HashMap<String, SubSystem> subSystems = new HashMap<>();
2126
private String driveSystem = "";
2227

@@ -93,6 +98,7 @@ public boolean init(HardwareMap hardwareMap) {
9398
}
9499
}
95100

101+
this.hardwareMap = hardwareMap;
96102
return noErrors;
97103
}
98104

0 commit comments

Comments
 (0)