-
Notifications
You must be signed in to change notification settings - Fork 244
Remove LED and GPIO support #2065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6df8be9
to
a2de9f0
Compare
photon-core/src/main/java/org/photonvision/vision/pipeline/AdvancedPipelineSettings.java
Outdated
Show resolved
Hide resolved
6892b8b
to
4c5e09f
Compare
Should we also remove pigpio and the associated config files from our RPi images? https://github.com/PhotonVision/photon-image-modifier/blob/1611214fea86b22fafb2ddc1a0f5ab4f29f65e72/install_pi.sh#L33 |
fe9c6be
to
671ee8f
Compare
done |
photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java
Outdated
Show resolved
Hide resolved
photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm inclined to keep a GPIO library in the image so people don't break the image if they try and do LED control for their own purposes
@@ -22,8 +22,6 @@ The directory structure is outlined below. | |||
- Contains images saved with the input/output save commands. | |||
- logs | |||
- Contains timestamped logs in the format {code}`photonvision-YYYY-MM-D_HH-MM-SS.log`. These timestamps will likely be significantly behind the real time. Coprocessors on the robot have no way to get current time. | |||
- hardwareSettings.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not delete the hardwareConfig.json then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's that do again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of right now just LEDs. If we added support for gyros (ie canandgyro over usb or LL4 gyro) it make sense to add it back but we can cross that bridge when we come to it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, yoink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as old configs still work with no errors, this looks great!
What's the driving reason to remove the status LED's? Casserole used them two years in a row for custom hardware, and found it quite valuable for on-field debug. |
We're keeping most of it for status LEDs, just dumping the stuff for lighting since retro-reflective is gone now.
We're going to keep GPIO and status LEDs, but get rid of lighting. Alongside that, we're going to change our GPIO lib to libgpiod. |
Also @spacey-sooty do you know what pins the status lights for LLs are on? |
@@ -158,7 +157,6 @@ public void checkNtConnectState(NetworkTableEvent event) { | |||
event.connInfo.remote_port, | |||
event.connInfo.protocol_version); | |||
logger.error(msg); | |||
HardwareManager.getInstance().setNTConnected(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the plan is to retain status LED support, revert this
Description
LEDs are no longer used with retro-reflective being removed. GPIO was added for LED support, and with the removal of LEDs is no longer needed.
closes #2062
Meta
Merge checklist: