From deb116b771d9e98bac8e2a8539877d17818bd5c5 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 29 Jan 2026 22:12:47 -0600 Subject: [PATCH 1/4] Remove hardware-specific commands that are no longer used --- docs/source/docs/hardware/customhardware.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/docs/source/docs/hardware/customhardware.md b/docs/source/docs/hardware/customhardware.md index e4b94e06ec..94712de26f 100644 --- a/docs/source/docs/hardware/customhardware.md +++ b/docs/source/docs/hardware/customhardware.md @@ -73,27 +73,21 @@ If you were using custom LED commands from 2025 or earlier and still need custom ## Hardware Interaction Commands -For Non-Raspberry-Pi hardware, users must provide valid hardware-specific commands for some parts of the UI interaction (including performance metrics, and executing system restarts). +For Non-Linux hardware, users must provide the hardware-specific command for executing system restarts. -Leaving a command blank will disable the associated functionality. +Leaving this command blank will disable the restart functionality. ```{eval-rst} .. tab-set-code:: .. code-block:: json { - "cpuTempCommand" : "", - "cpuMemoryCommand" : "", - "cpuUtilCommand" : "", - "gpuMemoryCommand" : "", - "gpuTempCommand" : "", - "ramUtilCommand" : "", "restartHardwareCommand" : "", } ``` :::{note} -These settings have no effect if PhotonVision detects it is running on a Raspberry Pi. See [the MetricsBase class](https://github.com/PhotonVision/photonvision/blob/dbd631da61b7c86b70fa6574c2565ad57d80a91a/photon-core/src/main/java/org/photonvision/common/hardware/metrics/MetricsBase.java) for the commands utilized. +This setting has no effect if PhotonVision detects it is running on Linux. On Linux, the restart is accomplished by executing `reboot now` in a shell. ::: ## Known Camera FOV @@ -151,12 +145,6 @@ Here is a complete example `hardwareConfig.json`: "setPWMCommand" : "setPWM {p} {v}", "setPWMFrequencyCommand" : "setPWMFrequency {p} {f}", "releaseGPIOCommand" : "releseGPIO {p}", - "cpuTempCommand" : "", - "cpuMemoryCommand" : "", - "cpuUtilCommand" : "", - "gpuMemoryCommand" : "", - "gpuTempCommand" : "", - "ramUtilCommand" : "", "restartHardwareCommand" : "", "vendorFOV" : 72.5 } From 56d1d2205422e9889989845679af951c47d28046 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 29 Jan 2026 22:12:58 -0600 Subject: [PATCH 2/4] Fix typo in comment --- .../photonvision/common/configuration/SqlConfigProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/photon-core/src/main/java/org/photonvision/common/configuration/SqlConfigProvider.java b/photon-core/src/main/java/org/photonvision/common/configuration/SqlConfigProvider.java index 847405bd83..25fff42875 100644 --- a/photon-core/src/main/java/org/photonvision/common/configuration/SqlConfigProvider.java +++ b/photon-core/src/main/java/org/photonvision/common/configuration/SqlConfigProvider.java @@ -269,7 +269,7 @@ private T loadConfigOrDefault( } else { logger.debug("No " + ref.getSimpleName() + " in database"); } - // either the config entry is empty or Jackson threw and exception + // either the config entry is empty or Jackson threw an exception try { configObj = factory.get(); logger.info("Loaded default " + ref.getSimpleName()); From 22245e580dca9f941295e29a96adffefa30a0289 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 29 Jan 2026 22:23:37 -0600 Subject: [PATCH 3/4] fix another typo --- docs/source/docs/hardware/customhardware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/docs/hardware/customhardware.md b/docs/source/docs/hardware/customhardware.md index 94712de26f..3289cad7e0 100644 --- a/docs/source/docs/hardware/customhardware.md +++ b/docs/source/docs/hardware/customhardware.md @@ -144,7 +144,7 @@ Here is a complete example `hardwareConfig.json`: "setGPIOCommand" : "setGPIO {p} {s}", "setPWMCommand" : "setPWM {p} {v}", "setPWMFrequencyCommand" : "setPWMFrequency {p} {f}", - "releaseGPIOCommand" : "releseGPIO {p}", + "releaseGPIOCommand" : "releaseGPIO {p}", "restartHardwareCommand" : "", "vendorFOV" : 72.5 } From e8bb1f84aec8c852ec79aff4d5b48ecacfb7bcc9 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Thu, 29 Jan 2026 23:00:24 -0600 Subject: [PATCH 4/4] Update docs/source/docs/hardware/customhardware.md Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com> --- docs/source/docs/hardware/customhardware.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/docs/hardware/customhardware.md b/docs/source/docs/hardware/customhardware.md index 3289cad7e0..957a7dc753 100644 --- a/docs/source/docs/hardware/customhardware.md +++ b/docs/source/docs/hardware/customhardware.md @@ -73,7 +73,7 @@ If you were using custom LED commands from 2025 or earlier and still need custom ## Hardware Interaction Commands -For Non-Linux hardware, users must provide the hardware-specific command for executing system restarts. +For non-Linux hardware, users must provide the hardware-specific command for executing system restarts. Leaving this command blank will disable the restart functionality.