Posts: 8
Threads: 5
Joined: Mar 2024
Reputation:
0
I want to use buttons connected directly to pi gpios. But I would like to use one button to engage and disengage py-pilot. Is there an easy way to achieve that or do I need to learn python :-)
Thanks
Posts: 2,324
Threads: 21
Joined: Jun 2016
Reputation:
72
I am not sure if you want to use 1 button to engage and a different to disengage, or 1 button to toggle. By default the "auto" pin marked on the pypilot hat will do this.
Yes, assuming you are running the pypilot_hat service (already enabled on tinypilot) navigate to the host:33333, or in the web control of pypilot there is a link in the configuration to programming keypads and remotes.
From here you can reprogram the remotes but also any of the gpio pins to do any types of functions, including engage, standby, or auto which toggles (but exits menu if in the menu)
Posts: 3,025
Threads: 63
Joined: Mar 2016
Reputation:
284
2024-05-02, 05:10 PM
(This post was last modified: 2024-05-02, 05:11 PM by Sailoog.)
I am thinking of adding some pypilot actions to the openplotter-notifications app so that some pypilot controls can be triggered by predefined notifications in the Signak k server. This would include GPIO states, environmental conditions, any onboard sensor state... the possibilities are endless. Obviously, this should be handled with extreme care.
Initially I only would include:
ap.enabled
ap.heading_command
ap.mode
ap.tack.direction
ap.tack.state
This would also solve Steve's request because in openplotter-gpio app you can generate notifications using any GPIO.
Any suggestion?