(2023-06-28, 02:52 PM)oilybilge Wrote: Firstly, a massive shout-out to Sean, Ironman, Stelian, and many others on this site, thanks to whom I'm now the proud owner of a working tinypilot. I gave it a trial run yesterday on my boat and it worked brilliantly. Given that the last time I did anything like this I was ten years old and silicon chips had barely been invented I'm quite pleased.
I'm using Stelian's image of the tinypilot on a Pi zero W, and an H-bridge motor controller based on Sean's plan. At the moment I'm using my iPhone to control it, but I'd like to hardwire some push switches to the Zero for basic controls. However nothing happens when I ground the relevant pins. I've followed this advice from Ironman:
To enable the module, type sudo systemctl enable pypilot_hat and sudo systemctl start pypilot_hat (on the tinypilot distribution, replace systemctl with sv)
... but it makes no difference and I'm not even sure I'm doing the right thing. Could anyone help me out?
Cheers!
Did you use the web interface at :33333 to reconfigure the keys? https://github.com/pypilot/workbook/wiki...-interface:
Open the web interface, hit a key (in my test, I shorted GPIO26 to ground). You should see this happen in the interface. Then, within a few seconds, click one of the actions (in my test, I clicked 'engage'). From then on, shorting GPIO26 to ground engages the autopilot.
The original key mappings refer to the hardware hat and don't work without the hardware hat present. You have to reconfigure them. I've added this comment to the workbook.