2021-09-16, 01:25 PM
I have some old seatalk instrument, and have the data coming in over GPIO. However I find that the seatalk network is very noisy and I frequently get momentary zero values for wind or depth metrics.
As such it throws off the autopilot to the extent that is can be quite dangerous, resulting in unplanned tacks or gybes when sailing with autopilot in wind tracking mode.
Now while there is likely to be a physical problem, or several, I would like to try ignoring the obvious bad data and use last value when a zero comes through.
I think this must be fairly trivial but not sure where to start.
I'm wondering if Node Red is the answer, but will need to guarantee that the outgoing canbus data stream is using the cleaned data stream.
Do I need to write a plugin like the derived data plugin?
As such it throws off the autopilot to the extent that is can be quite dangerous, resulting in unplanned tacks or gybes when sailing with autopilot in wind tracking mode.
Now while there is likely to be a physical problem, or several, I would like to try ignoring the obvious bad data and use last value when a zero comes through.
I think this must be fairly trivial but not sure where to start.
I'm wondering if Node Red is the answer, but will need to guarantee that the outgoing canbus data stream is using the cleaned data stream.
Do I need to write a plugin like the derived data plugin?