mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
Hardware Management, Metrics, PWM/GPIO support. (#12)
* [Server] Hardware Management * [Server] Hardware Management * [Server] Hardware Management * [Server] Hardware Management * [Server] Hardware Management * [Server] Hardware Management * Added metricsPublisher * [Server] Hardware Management * [Server] Hardware Management * Fill in HardwareConfig, allow JSON Comments * Use hardware config * [Hardware Management] Use Hardware Config * [Hardware Management] Use softPWM for dimming * [Hardware] Added HardwareConfig Test * [Hardware] Started HardwareManager * Start metrics thread in hardwareManager * [Hardware] Added Hardware Manager Test * [Hardware] Spotless * [Hardware] Added logging, cleaned up HardwareConfig * [Hardware] Added logging to PWM class * [Hardware] Rebase off master, fix merge conflicts * [Hardware] Ignore metrics commands if on pi * [Hardware] Remove GPIO provision after shutdown * [Hardware] Switch over to diozero * [Hardware] Use broadcom pins * [Hardware] Fix PWM port * [Hardware] Use jpi instead of pigpio * [Hardware] Use dizero-core * [Hardware] No need to close LED * [Hardware] Switch to jpigpio * [Hardware] Initalize JPiGPIO in unit tests * [Hardware] Use dutyCycle for LED dimming * [Hardware] Add blink test to HardwareManager * [Hardware] Fix PWM port * [Hardware] Fix HardwareManagerTest * [Hardware] Fix HardwareManagerTest * [Hardware] Use waves for LED blinking * [Hardware] Make blinking part of PWM * [Hardware] Add API methods to hardware Manager * [Hardware] Only start pigpio if on pi * [Hardware] Merge PWM classes into GPIO * [Hardware] Add Hardware stuff to VisionModules * [Hardware] Remove random semicolon Co-authored-by: Banks Troutman <btrout.dhrs@gmail.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"deviceName": "PhotonVision",
|
||||
"deviceLogoPath": "photonvision.png",
|
||||
"supportURL": "https://support.photonvision.com",
|
||||
"hardware": {
|
||||
"leds": [2,13],
|
||||
"ledSetCommand": "",
|
||||
"ledsCanDim": true,
|
||||
"ledPWMRange": [0, 100],
|
||||
"ledPWMSetRange": "",
|
||||
"ledDimCommand": "",
|
||||
"ledBlinkCommand": ""
|
||||
},
|
||||
|
||||
"metrics": {
|
||||
"cpuTemp": "echo 10",
|
||||
"cpuMemory": "echo 10",
|
||||
"cpuUtil": "echo 10",
|
||||
"gpuMemory": "echo 10",
|
||||
"gpuUtil": "echo 10",
|
||||
"ramUtil": "echo 10"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user