2021-02-17, 03:51 AM
@MXTommy,
I have a feature request - I would like to display times - current time and ETA. I am especially interested in ETA
currently there is not an ETA spat out by Opencpn but I have created it within 'Derived Data' - but it is a text string - as the other Dates/times in SignalK and is based on Zulu time. I would like to be able to show the time in a friendly, usable format. if it need to be in a different format then I can update the eta.js. I am currently showing it as the picture below:
if you want to test the eta.js and have Derived data installed then copy the file attached in to the directory:
Once enabled, you will get a signal k phrase "navigation.courseGreatCircle.nextPoint.eta" when you have a next point and a VMG
As you were talking about creating a screen for XTE in an earlier post. If it helps, I did create another 'Derived data' term for 'steer error', where XTE is about the distance you are from the Rhumbline, what I think you want to know is the error between your current heading and the next waypoint so I created phrases "navigation.courseGreatCircle.nextPoint.rightSteerError" and "navigation.courseGreatCircle.nextPoint.leftSteerError" and I display them like the picture below:
i did also add just steer error and the sign tell you the direction if you prefer.
I have also included the steer_error.js
thanks
Techstyle
I have a feature request - I would like to display times - current time and ETA. I am especially interested in ETA
currently there is not an ETA spat out by Opencpn but I have created it within 'Derived Data' - but it is a text string - as the other Dates/times in SignalK and is based on Zulu time. I would like to be able to show the time in a friendly, usable format. if it need to be in a different format then I can update the eta.js. I am currently showing it as the picture below:
if you want to test the eta.js and have Derived data installed then copy the file attached in to the directory:
Code:
/home/pi/.signalk/node_modules/signalk-derived-data/calcs/
Once enabled, you will get a signal k phrase "navigation.courseGreatCircle.nextPoint.eta" when you have a next point and a VMG
As you were talking about creating a screen for XTE in an earlier post. If it helps, I did create another 'Derived data' term for 'steer error', where XTE is about the distance you are from the Rhumbline, what I think you want to know is the error between your current heading and the next waypoint so I created phrases "navigation.courseGreatCircle.nextPoint.rightSteerError" and "navigation.courseGreatCircle.nextPoint.leftSteerError" and I display them like the picture below:
i did also add just steer error and the sign tell you the direction if you prefer.
I have also included the steer_error.js
thanks
Techstyle