Remove build/libs/AdafruitStepperMotorHAT_CPP before make install
OR
after make (it goes successfully) manually copy indi_amh_focuser to /usr/bin and indi_amh_focuser.xml to /usr/share/indi
This is just a simple implementation of a driver for Adafruit HAT. It would be good idea to update it to the latest Astroberry-DIY, which is much more mature. I could do this some time, in the meantime new pull requests are more than welcomed.
A question? How does the position reset function work? I’ve had kstars/ekos crash a few times while focusing leaving the focuser near focus and near focus being the zero position rather than the zero position being racked in. I understand position reset allows one to move to negative positions while still identifying the new position as zero. How many steps is the focuser moved inward when selecting position reset?
I've encountered an issue.
I'm setting up a new Raspberry Pi 4 with Rlancaste's script, which is wonderful.
When I build the AMH focuser driver everything appears to complete. I copy the driver to /use/bin/ and the XML to /usr/share/indi/.
However when I run the driver in EKOS, The driver's does not appear in the INDI control panel, nor in the focul module. I can however see it as a running task in a resource monitor.
Syntax appears to be unchanged, And I've confirmed with test scripts that the motor driver does work.
This appears in my ekos log
"Unable to establish:\n+ Motor HAT Focuser\nPlease ensure the device is connected and powered on."
The bizarre thing was I had it working once the first time I installed it on the Pi4. But I've failed on subsequent rebuilds, and I don't believe I've missed anything. So the code should be fine. But there is some troubleshooting to do.
I have come across a modification to the Adafruit Motor Hat Library that improves the performance of the board. Unfortunately I am unclear on how to implement it. If you have the time could you take a look?
Thank you kindly morepootling.blogspot.com/2016/06/gettin...ruit-dc-stepper.html