How do people see average COG over minutes? App?

noaano

Anarchist
722
363
2023, basic instrument systems already do this. Maybe you should hire a pro to explain it to you?

Maybe you can explain how to get your basic instrument do variable dampening and data filtering with an algorithm of your choice for you? Previously mentioned median weighted mean for example is not in the settings menu of your basic 2023 instrument.

I can tell you without hiring a pro that the settings in basic instruments allow only so much.

Plus you learn a lot by doing it yourself, not everything has to be a already chewed MRE.
 

Howler

Animal control officer
424
430
So you want a display showing instant and smoothed data?
That seems like something that should exist if it doesn't.
There are some nice, visually pleasing displays that do this, for various sorts of numerical data. Instant data as a solid line, smoothed data as a fuzzy line or cloud around it fading with time. B&G SailSteer sort of does this with the laylines, for example. You need to get both the quant jocks and the artists in on the design.
 

Somebody Else

a person of little consequence
7,773
934
PNW
2023, basic instrument systems already do this. Maybe you should hire a pro to explain it to you?

Maybe.
I've gone through fits trying to pull NMEA2000 sentences off my network, into my Garmin display. If the engineers weren't explicitly told to allow it, you ain't going to see it.
So I may still put together some OpenCPN project to get what I want. What hardware is favored at this point?
 

noaano

Anarchist
722
363
What hardware is favored at this point?

I use Moxa UC8000 series.

Runs on DC, does not use much power (mine is on 24/7/365), robust, fits in DIN-rail, runs almost standard linux, has multiple LAN and serial ports, decently priced.

You could use Raspberry, but it won't be ready from a box like Moxa.
 

kent_island_sailor

Super Anarchist
28,653
6,419
Kent Island!
I use Moxa UC8000 series.

Runs on DC, does not use much power (mine is on 24/7/365), robust, fits in DIN-rail, runs almost standard linux, has multiple LAN and serial ports, decently priced.

You could use Raspberry, but it won't be ready from a box like Moxa.
Pass on Pi.
They are VERY expensive now for what you get, which is a slow computer.
 

Howler

Animal control officer
424
430
I use Moxa UC8000 series.

Runs on DC, does not use much power (mine is on 24/7/365), robust, fits in DIN-rail, runs almost standard linux, has multiple LAN and serial ports, decently priced.

You could use Raspberry, but it won't be ready from a box like Moxa.
Yup.
You can tell who has actually lived in this world, because the questions they start asking often aren't about processor capability, but things like "How are the connectors attached to the circuit board?" and "what kind of fasteners hold the case together?"
I have speced Moxa gear with good results. My recollection is that they got their start making stuff for railways. Stuff that's meant to be left out in the rain, and installed a long way from the nearest service depot.
 

noaano

Anarchist
722
363
Code:
Title: Median Weighted Mean Calculation Recipe

Ingredients:

UDP_IP address
UDP_PORT number
BUFFER_SIZE in bytes
NMEA_PREFIX string
NMEA_SUFFIX string
NMEA_CHECKSUM string
NMEA_FIELDS list
sog_values list
weights list

Instructions:

Preheat the socket to listen for UDP packets on the IP address and port number specified in the ingredients.

Prepare the NMEA message format with the prefix, suffix, and checksum as specified in the ingredients. Set all the fields to "N/A".

Create two empty lists, one for storing SOG values and the other for storing the elapsed time for each SOG value.

In a large mixing bowl, mix the above ingredients to prepare the base for the recipe.

While continuously mixing, wait for a UDP packet to arrive.

Once received, extract the NMEA message from the packet.

Check if the message starts with the specified prefix.

If yes, extract the SOG value from the message and calculate its weight based on the elapsed time since the last packet.

Add both the SOG value and its weight to their respective lists.

In another mixing bowl, whisk together the SOG values and their corresponding weights to prepare a batter of weighted SOG values.

Remove all SOG values and their corresponding weights that are older than 60 seconds.

In yet another mixing bowl, whisk together the remaining SOG values and their corresponding weights to prepare a batter for calculating the median weighted mean.

Calculate the median weight of the remaining SOG values and use this to calculate the median weighted mean.

In a new mixing bowl, combine the median weighted mean with the other NMEA fields and calculate the checksum.

Create a new NMEA message with the calculated values and send it via UDP.

Bake the recipe until a new UDP packet arrives.

Repeat steps 5 to 16 until the recipe is finished.

Enjoy the Median Weighted Mean Calculation Recipe in Chef!
 
232
6
Of course I can make a line heading back over my last minute of sailing and add 180 degrees, but there must be an
easy app or something to see my average course for the last 30 seconds, minutes, feet etc? I have androids apples, GPS etc.. All I want is something to give some slower feedback, tried max smoothing, not a long enough average to make tiller pilot and wind pilot changes.. Thanks so much y'all
Sure, the "Memory-Map for All" app displays Average COG, among numerous other useful data options. The averaging time is configurable under Route Settings. See https://memory-map.com/mm-fa-help/index.htm
 

BilboRanger37

New member
6
1
Sure, the "Memory-Map for All" app displays Average COG, among numerous other useful data options. The averaging time is configurable under Route Settings. See https://memory-map.com/mm-fa-help/index.htm

Screenshot_20230402-104330.jpg
 


Latest posts





Top