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
Photon Feeder - No PartId Prevents Configuration Save #1557
Comments
This error is in the AbstractFeeder and it's part of the base feeder. I suspect this is because OpenPnP generally considers a feeder as "parts you care about right now" and doesn't usually deal with feeders that aren't there to serve a part (whereas our feeders stay in OpenPnP even if they're off the machine) or may not have an associated part. @vonnieda @markmaker Any reason why required is true here for the part id? |
Hi @Jnesselr, This was defined before my time, but I think a feeder just always needs a part assigned. When you create a new feeder, and no part is given, it defaults to the very first part, here:
Plus the UI does not allow to select a So when you create a openpnp/src/main/java/org/openpnp/machine/photon/PhotonFeeder.java Lines 204 to 206 in 2897bb9
_Mark |
The way I've gotten around this, on my own feeders unrelated to the Photon feeder, is I just have a specific "dummy" part that is not used by any job and marked as such -- can be anything valid really, Fiducials may even work. |
|
I feel like forcing there to be a part doesn't make sense for this type of feeder. If I make it optional and make sure there's no crashes, is that acceptable? I feel like anything else is a workaround. |
That would be very welcome! 💯 😎 It always irked me that this random first part is assigned. But do not underestimate the needed work. You'd need to ...
_Mark |
Yep, that about sums up what I expected the work to be as well. Glad we're on the same page. I'll try to schedule this task in. I know there's at least one other PR I'll need to send y'all's way too. |
Problem Report
Describe the Issue
When using the photon feeder type with the opulo 8mm feeder, if the feeder does not have a PartId attached to it, the machine configuration will not save. See error below.
Steps to Reproduce
Expected Result
The machine configuration to save.
Actual Result
The machine configuration does not save successfully. Changes to other areas of the machine configuration are also not affected by this change; it appears any and all changes do not save properly.
Notes, Log Files, Screen Captures, Videos, etc. to Show the Issue
I also attempted to create this issue by creating a new ReferenceStripFeeder. However, it would appear that
FIDUCIAL-HOME
is always selected by default. Maybe this is the expected safe state for feeder part IDs?The text was updated successfully, but these errors were encountered: