Class HardwareConfig
java.lang.Object
org.photonvision.common.configuration.HardwareConfig
-
Field Summary
-
Constructor Summary
ConstructorDescriptionHardwareConfig
(String deviceName, String deviceLogoPath, String supportURL, ArrayList<Integer> ledPins, String ledSetCommand, boolean ledsCanDim, ArrayList<Integer> ledBrightnessRange, String ledDimCommand, String ledBlinkCommand, ArrayList<Integer> statusRGBPins, String cpuTempCommand, String cpuMemoryCommand, String cpuUtilCommand, String cpuThrottleReasonCmd, String cpuUptimeCommand, String gpuMemoryCommand, String ramUtilCommand, String gpuMemUsageCommand, String diskUsageCommand, String restartHardwareCommand, double vendorFOV, List<Integer> blacklistedResIndices) -
Method Summary
-
Field Details
-
deviceName
-
deviceLogoPath
-
supportURL
-
ledPins
-
ledSetCommand
-
ledsCanDim
public final boolean ledsCanDim -
ledBrightnessRange
-
ledDimCommand
-
ledBlinkCommand
-
statusRGBPins
-
cpuTempCommand
-
cpuMemoryCommand
-
cpuUtilCommand
-
cpuThrottleReasonCmd
-
cpuUptimeCommand
-
gpuMemoryCommand
-
ramUtilCommand
-
gpuMemUsageCommand
-
diskUsageCommand
-
restartHardwareCommand
-
vendorFOV
public final double vendorFOV -
blacklistedResIndices
-
-
Constructor Details
-
HardwareConfig
public HardwareConfig() -
HardwareConfig
public HardwareConfig(String deviceName, String deviceLogoPath, String supportURL, ArrayList<Integer> ledPins, String ledSetCommand, boolean ledsCanDim, ArrayList<Integer> ledBrightnessRange, String ledDimCommand, String ledBlinkCommand, ArrayList<Integer> statusRGBPins, String cpuTempCommand, String cpuMemoryCommand, String cpuUtilCommand, String cpuThrottleReasonCmd, String cpuUptimeCommand, String gpuMemoryCommand, String ramUtilCommand, String gpuMemUsageCommand, String diskUsageCommand, String restartHardwareCommand, double vendorFOV, List<Integer> blacklistedResIndices)
-
-
Method Details
-
hasPresetFOV
public final boolean hasPresetFOV()- Returns:
- True if the FOV has been preset to a sane value, false otherwise
-
hasCommandsConfigured
public final boolean hasCommandsConfigured()- Returns:
- True if any command has been configured to a non-default empty, false otherwise
-
toString
-