6
6
import com .qualcomm .robotcore .hardware .Servo ;
7
7
8
8
import org .firstinspires .ftc .teamcode .Params .namespace ;
9
+ import org .firstinspires .ftc .teamcode .Utils .Annotations .UserRequirementFunctions ;
9
10
import org .firstinspires .ftc .teamcode .Utils .DeviceConfigPackage ;
10
11
import org .firstinspires .ftc .teamcode .Utils .Enums .HardwareState ;
11
12
@@ -31,23 +32,29 @@ public enum HardwareDevices {
31
32
public final Class <?> classType ;
32
33
public final DeviceConfigPackage config ;
33
34
35
+ @ UserRequirementFunctions
34
36
HardwareDevices (String deviceName , Class <?> classType ,DeviceConfigPackage config ){
35
37
this .config =config ;
36
38
this .classType =classType ;
37
39
this .deviceName =deviceName ;
38
40
}
41
+ @ UserRequirementFunctions
39
42
HardwareDevices (String deviceName , Class <?> classType ){
40
43
this (deviceName ,classType ,new DeviceConfigPackage ().AutoComplete ());
41
44
}
45
+ @ UserRequirementFunctions
42
46
HardwareDevices (String deviceName , Class <?> classType ,HardwareState state ){
43
47
this (deviceName ,classType ,new DeviceConfigPackage ().AddConfig (state ));
44
48
}
49
+ @ UserRequirementFunctions
45
50
HardwareDevices (String deviceName , Class <?> classType , Direction direction ){
46
51
this (deviceName ,classType ,new DeviceConfigPackage ().AddConfig (direction ));
47
52
}
53
+ @ UserRequirementFunctions
48
54
HardwareDevices (String deviceName , Class <?> classType ,HardwareState state , Direction direction ){
49
55
this (deviceName ,classType ,new DeviceConfigPackage ().AddConfig (direction ).AddConfig (state ));
50
56
}
57
+ @ UserRequirementFunctions
51
58
HardwareDevices (String deviceName , Class <?> classType , Direction direction ,HardwareState state ){
52
59
this (deviceName ,classType ,new DeviceConfigPackage ().AddConfig (direction ).AddConfig (state ));
53
60
}
0 commit comments