-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark laylines do not appear for west longitudes or south latitudes #48
Comments
Here are the find getlineintersection in my version of tactics_pi.cpp
Here are the getlineintersection in your version of tactics_pi.cpp (direct from your repo)
However I find no GCIntersectSegment In this file or the tactics_pi.cpp from rgleason repo! |
In the version of that you uploaded here tactics.cpp.txt I find
Is your repo for tactics different than the tactics_pi.cpp.txt that you uploaded? |
How would I test for this problem, using shipdriver? I'd like to be sure that it is a problem with this version first. |
Just updated tactics_pi repo. Look around line 1644. ShipDriver for test purposes was posted on the Crusers Forum. I will find the post #. |
Mike, I think I downloaded that version and have it. What do I do to test? I have ShipDriver-3.3.3+1440.630b67d_msvc-wx32-10-win32.tar.gz and will install it. |
If you have tactics_pi loaded you should see the polar and the boat laylines. You may need to sail close hauled by changing course with ShipDriver. |
The version needed is 999 further down the list. |
Ah not a VDR file, I was using one of Thomas Rauch's Tactics VDR files. It should be a current grib file, that makes good sense. |
Here ship is next to Japan, downloaded a grib file, set grib to play, click start, then prompted to move ship to position. Close the message and right click and set boat position. Tactics is open, but not receiving weather data, grib file is playing. @Rasbats How do I configure connections to get grib weather data into nmea0183? Are there some connection details needed? |
@Rasbats How do I configure connections to get grib weather data into nmea0183? Are there some connection details needed? |
No connection need changing/setting up.
In the NMEA Debug window you will see the stream of nmea messages for wind. |
Oh ... have you set up a Tactics temp. WP and are tacking towards it? |
Yes, of course I've set a TacticsWP there is no other way to get laylines, but there is no data going into Tactics or into the Nmea0183 window Correction: I had not set the WP!!! |
I will test on another machine that has not seen this problem. |
Now I have an active route on the right because I set the TacticsWP. Have not seen any data. The speed is set to be more than 0 but does not show yet. I click on the Play for Grib too. Is there a certain kind of grib needed? Like with very small interval 3hr or 1 hr? I've downloaded and am using ShipDriver-999.0.0+1439.33557f0_msvc-wx32-10-win32(1).tar.gz |
" I click on the Play for Grib too." |
I am testing Chile with a 6hr grib! |
Ok. That's helpful. I haven't see grib open when SD is opened yet. Will try some more. I have now first download a grib and loaded it into grib.
This post is from when I had grib open and a TacticsWP set with an active route. |
It looks like you may not be using SD v999. |
Werner would really like this improvement too. He's in Puerto Montt right now, going down through Patagonia next. |
Have just set up a new OpenCPN 5.8.4. Works as I would expect it to. |
Ya, that's kind of what I thought. Is this 999 ? ShipDriver-999.0.0+1439.33557f0_msvc-wx32-10-win32(1).tar.gz Maybe there is another one? |
Yes. The same as in Cloudsmith, just the second copy in my Downloads. And the one I used for the new setup. |
"Ok I removed active route, and the tacticsWP. What order?" |
Humm. So I am using the right one. I am missing something in its operation? Must I put in an MMSI? |
Ok no active route, just drop TacticsWP. What about "But Right click at the vessel start location and then picking "Vessel start location" does not seem to move the vessel."? Any way to get rid of the mmsi? Just enter a number? |
@Rasbats Starting to work. Have to enter mmsi number. Still some issues. |
PR #49 shows my changes. Note that the code for non-intersections remains but is not used. |
Thank you MIke! I am studying this and have a couple of questions. First I tried downloading the tarball and installing it in OpenCPN to see how it worked, but when I try to import it is incompatible and the filename is missing "wx32" I think I am going to make a new "test" branch and PR your changes to that. Then try to test in OpenCPN, just to be sure. |
I guess that is the best way to do this. Made a new branch "laylines" and the made a new PR from rasbats to rgleason/tactics/laylines in the github web interface. We'll see how it builds and installs. |
It built and looks ok https://cloudsmith.io/~opencpn/repos/tactics-alpha/packages/?q=1.0.81.0+msvc+tarball |
Easy one ... just close and restart OpenCPN. |
The problem with Japan may be due to the time interval between charts - 6 hours? Try using a grib from the North Sea; |
Gone back to Adriatic and tried using shipdriver again with this Using shipdriver. |
I think you've missed some code. You should try this version yourself, I think you'll see what I mean. We're using the Laylines branch, it seems to build ok and the deployment is to here in cloudsmith. You can increment the last version digit, it will make the builds a little easier to handle, if you push something else. We're headed to mystic ct (1-2hrs) |
To avoid confusion it may be better to use a new version number. |
Ok now using Alberg 36 polar. and it is working in the adriatic with the tactics VDR file. There are lots of moving parts. I guess I have to test it in the other hemisphere next. Sorry about that. |
A VDR for the Adriatic, using your grib: |
Mike, I went back to Japan, using this grib with it set to interpolate to 30 minutes, and (with a good polar file!) it was showing the laylines and polar file and the tacking angles. However the laylines do not make sense to me. I think some calc might be off. Note: the version being used is in the github/rgleason/tactics/ Laylines branch which has Mikes PR to fix laylines through out the globe. Deployment is to here in cloudsmith. https://cloudsmith.io/~opencpn/repos/tactics-alpha/packages/?q=1.0.81.0+msvc+tarball |
My fix fails for Japan. The intersection is completely wrong. |
At the end of the GCIntersectSegment function I added some corrections.
|
Very nice fix Mike. I am very impressed and wish I knew enough to do that. Thanks for all your help fixing this!!! If you want to PR my repo laylines (...I will do that now. and test again) This is a fast itteration.. |
Mike your change has been built. It is one of the top two. I have tested it in Japan, and it appears to be working here a lot better. Have not tested it elsewhere. Grib file used Japan-GFS20240125125301697.grb.pdf |
I need to test this some more, in different places on the globe, etc. |
Mike, using version Tactics 1.0.81.4 from rgleason/Laylines which has your most recent PR and some TP updates from me. It appears to me that this version is at least built so that installs, and the filename has "wx32" as it should. Tonight I tested 1.0.81.4 it in the Adriatic and Japan, and in both places the laylines seem to have changed, (I think it was better before the last change.) I am going to post the results of the two examples. next. |
Yes. Using the return value of GCIntersect does not work! Latest PR assumes we always have an intersect. |
Mike, "The checks do not create the wx32 version in Cloudsmith. Please can you make this version for testing again." Have you merged my PR from before that is intended to fix this?
|
Mike, if you look at this PR page #55 Hum, that is another stumper. Its not wx32 but is still wx Going back to your PR build it looks ok to me Your repo and your use has access to deploy to Cloudsmith Tactics, ....but your PR does not? I will just merge this right now. |
Mike it is found in Tactics-alpha with a search "1.0.81.5+msvc+wx32+tarball" here https://cloudsmith.io/~opencpn/repos/tactics-alpha/packages/?q=1.0.81.5+msvc+wx32+tarball The rest of the macos and debian are completing. I will try to test it tonight. Thanks so much. PS: I think you should disable Tactics and the other TP plugins in your Appveyor Dashboard. That will help eliminate some of the confusion. |
Tested Vancouver Island, BC and Tasmania. Looks good to me. It would be nice to have other users testing this. |
The GCIntersectSegment function has gone walkabout. |
The same problem as Dashboard_Tactics.
Fixed in this file:
tactics_pi.cpp.txt
The text was updated successfully, but these errors were encountered: