I'm just starting to get somewhat comfortable customizing hal files and have a couple of niggling questions, I'm using Axis with a Mesa 7i95t board.
Presently I have main.hal generated by MesaCT and I now have a postgui.hal that I created to add a bit of customization.
I see that some users have other custom named hal files for example t2030_7i96.hal or zx45.hal that are specific to their system. There are other potential hal files as well for example:
custom.hal
shutdown.hal
haluiUserInterface.hal (It seems logical that this would be used for configuration specific to a pendant or custom control board)
1) Are the various hal files loaded in a particular order and do I need to be aware of the that and its implications?
2) It's not clear to me when you would use custom and if for example zx45.hal is just a specifically named custom?
3) I stuffed all my special stuff in postgui.hal, what is the significance of the "postgui", should somethings be in this file or excluded?
4) What about shutdown.hal, when would this be used? and example would be helpful.
5) Now that I have some custom code in postgui.hal, I had to comment out a few things in man.hal to avoid a conflict, for example (net joint-pos-cmd => pid.x.command) . if/when I use MesaCT again it will over-write my commented out lines and I will need to comment them out each time. I'm guessing there is no easy work around for this, so enter MesaCT at your own risk?
Thanks in advance for any tidbits of wisdom.