CoTaCo (V4.2.2): Task converter for XCSoar, LK8000 & SeeYou

Moderators: Uros, Tom, OXO

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Fri May 31, 2019 10:41 am

EDB wrote:
Fri May 31, 2019 10:13 am
The best design would be writing a Default.tsk and Default.txt for automated use... And maybe a SelectedFileName.tsk and SelectedFileName.txt for archiving/manual use ..
I guess you mean .txt for for airspace ?
Last edited by Bre901 on Fri May 31, 2019 10:53 am, edited 4 times in total.
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
EDB
Posts: 1575
Joined: Mon Oct 31, 2011 1:17 am
Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster

Re: CoTaCo : Yet another task converter for XCSoar

Post by EDB » Fri May 31, 2019 10:44 am

Yes. Tsk Taskfile(s) and txt Airspacefile(s)

Default.tsk/txt for automated use.
SelectedFileName.tsk/txt for manual/archive use.

And then use landscape.prf and competition.prf (same glider and specific waypoints, etc)

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Fri May 31, 2019 10:52 am

EDB wrote:
Fri May 31, 2019 10:44 am
Default.tsk/txt for automated use.
XCSoar doesn't read the Default.txt file unless it is specified explicitly in the profile file (or selected in the app), so you have to edit the profile file or load the airspace
IMHO , writing a profile file remains useful for users who just want to convert a task and fly without too much hassle (not having to manually select airspace, map, glider type & way points)
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
EDB
Posts: 1575
Joined: Mon Oct 31, 2011 1:17 am
Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster

Re: CoTaCo : Yet another task converter for XCSoar

Post by EDB » Fri May 31, 2019 11:24 am

Yes. Default.txt defined in the prf. Then you don't have to select it.

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Thu Jul 04, 2019 5:22 pm

CoTaCo version 2.1 is available from the website : http://condorutill.pagesperso-orange.fr ... tml#CoTaCo

Many thanks to all the beta-testers for their help !
CN: MPT — CondorUTill webpage: https://condorutill.fr/

janjansen
Posts: 1090
Joined: Wed Feb 24, 2016 9:26 pm

Re: CoTaCo : Yet another task converter for XCSoar

Post by janjansen » Mon May 18, 2020 11:31 pm

I only just discovered cotaco also creates an airspace text file for the penalty zones. Thats really brilliant, and xcsoar showing a side view of a penalty zone from 900-2000m, along with my glide slope helped me a lot in NK-2020.

Well, no, it didnt really, I was too low anyhow, but it could have helped!

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Tue May 19, 2020 7:39 am

Version 3 is available for beta testing : https://drive.google.com/open?id=1suXny ... VTXW73eqtg

I would not recommend overwriting your existing installation.
Copy your existing CoTaCo.ini to the new installation folder and run CoTaCo, the file will be updated.

New functionalities are :
- LK8000 support
- possibility to use a post-run script (not supplied for the time being, there is an example in the LK8000 thread) to transfer the converted files to another device

Some rather extensive testing has already been done for LK8000 (see here)
I would appreciate if someone could please check if the XCSoar part works as usual
Some proofreading of the manual(s) would be great too

Thanks in advance
CN: MPT — CondorUTill webpage: https://condorutill.fr/

janjansen
Posts: 1090
Joined: Wed Feb 24, 2016 9:26 pm

Re: CoTaCo : Yet another task converter for XCSoar

Post by janjansen » Tue May 19, 2020 11:47 am

Before going in to anything else, it seems if you edit the ini file in notepad, it changes the encoding and cotaco crashes:

Code: Select all

cotaco
        2330        2330         233         233
At line 245 of file CoTaCo.f
Fortran runtime error: Substring out of bounds: lower bound (0) of 'defpath' is less than one

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0  0x45efb3
#1  0x4580ae
#2  0x45573c
#3  0x4077c6
#4  0x40f65b
#5  0x40138a
You have to do it in notepad++ or similar. This is a screenshot comparing the notepad edited file (left, causes a crash) with a "new" one which works (right):
Image

I only just noticed that section is actually duplicated:

Code: Select all

# Default path for flightplans
Flightplans path=                                                                                                                                                                                                                                                                

# Default path for flightplans
Flightplans path=                
That might be the root cause. It does that when you recreate the ini after deleting it.

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Tue May 19, 2020 12:29 pm

Thanks
Could you please try "Save as" in Notepad and check the encoding, it should be ANSI or UTF-8, definitely not UTF-16
CN: MPT — CondorUTill webpage: https://condorutill.fr/

janjansen
Posts: 1090
Joined: Wed Feb 24, 2016 9:26 pm

Re: CoTaCo : Yet another task converter for XCSoar

Post by janjansen » Tue May 19, 2020 12:42 pm

notepad sees it as UTF-8, notepad++ says its ANSI. Saving as ANSI in notepad doesnt solve it. Notepad removes the invisible NUL characters in the duplicated Flightplans path= section.

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Tue May 19, 2020 2:56 pm

It was indeed a problem with the NULL character.
It should be fixed now

Same download link.
CN: MPT — CondorUTill webpage: https://condorutill.fr/

janjansen
Posts: 1090
Joined: Wed Feb 24, 2016 9:26 pm

Re: CoTaCo : Yet another task converter for XCSoar

Post by janjansen » Tue May 19, 2020 3:21 pm

Now it runs only once. First time it appears to work, the second time it runs (when cotaco.ini is created), it gives me an error:
*** file cotaco.ini: missing data***
Thats without me touching the ini file.

Im guessing its still related to that duplicate Flightplans path=
which now no longer is duplicate but something somewhere still wants it to be? You can tell Im an expert programmer :D

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Tue May 19, 2020 5:23 pm

Looks like gardening and coding/debugging don't mix well :oops: :oops:

I'll take a more serious look at that tonight ...
CN: MPT — CondorUTill webpage: https://condorutill.fr/

User avatar
Bre901
Posts: 1790
Joined: Tue Nov 22, 2016 8:57 pm
Location: Annecy (France)
Contact:

Re: CoTaCo : Yet another task converter for XCSoar

Post by Bre901 » Tue May 19, 2020 9:01 pm

janjansen wrote:
Tue May 19, 2020 3:21 pm
Now it runs only once. First time it appears to work, the second time it runs (when cotaco.ini is created), it gives me an error:
*** file cotaco.ini: missing data***
Thats without me touching the ini file.

Im guessing its still related to that duplicate Flightplans path=
which now no longer is duplicate but something somewhere still wants it to be? You can tell Im an expert programmer :D
I'm not able to reproduce this here
Could you post or send me the CoTaCo.ini file generated ?
CN: MPT — CondorUTill webpage: https://condorutill.fr/

janjansen
Posts: 1090
Joined: Wed Feb 24, 2016 9:26 pm

Re: CoTaCo : Yet another task converter for XCSoar

Post by janjansen » Tue May 19, 2020 11:08 pm

rename extension
You do not have the required permissions to view the files attached to this post.

Post Reply