2020-02-25, 09:24 PM
(2020-02-25, 08:17 PM)seandepagnier Wrote: Yes, I have a python script that works with micropython and can set and retrieve values from pypilot as well as read from gpio.
But if that code works with micropython, then you can probably use this on your ECD https://github.com/marcobergman/pypilot_...ter/ray.py with some changes. It emulates the original raymarine button functionality, adding a bit more functionality to adjust gains while in operation. You can remove the 'bell' and 'remote' code.
The raymarine-style functionality distinguishes between 'auto' (=compass) and 'track' (=gps) modes, making it possible to choose between the two modes at your descretion. I had to make some modifications to the pypilot code to make this work. I have not documented these modifications yet, but if you are going to reuse this code I will first have to confess the details of these cardinal sins to Sean because those modifications might have some undesirable side-effects.