If there any desire for improved code around the tool handling?
I am looking at the way FB handles tool changes when the tool head you need to load is already loaded in the UTM. There is no ‘sequence’ or IF statement to check this. It bugs me that the existing method is to dismount the tool and then mount the tool (the same one) as the only method to ensure the correct tool head is loaded.
I now have the LUA code to read the ID of the loaded tool and a comparison would be easy enough. I am thinking of rewriting the mount_tool() to be a little bit more intelligent.
Also.
For the error handling of FB, I have written a ‘Park - Error occurred’ sequence, which moves the FB head to the furthest position X & Y and lowers the Z head with e-stop as if the FB is hanging its head in shame. This lets me know that something went wrong with the FB whilst I was not looking. It is a bit of a visual cue so I don’t have to take a closer look unless I see this shape. I did this as I had unreliable UTM connections on the watering head which was causing me grief. I wrote a wrapper for the ‘mount_tool()’ routine called ‘load watering head - SAFELY’ which checks before and after the actual mount_tool() routine to validate that the head loaded correctly and to ‘park - Error occurred’ if it detected something was wrong. The routine worked perfectly but (as designed) it kept triggering due to the unreliable connection on the UTM. Now I have resolved the unreliable connection by adding four 3 mm wsashers, my FB no longer hangs its head in shame and the tool switches are seamless. (Finally).
Also, if this is considered improved code, how does someone get it formally recognised into the FB build?