Re: Unable to compile on master

2017-12-21 Thread Ivan Wagner

I recloned the sources it's ok. Thank you.


On 20.12.2017 08:52, Miika Turkia wrote:

try running following in subsurface source directory:

git submodule init
git submodule update --recursive


On Wed, Dec 20, 2017 at 9:34 AM, Ivan Wagner <ivan.wag...@tecinvent.ch 
<mailto:ivan.wag...@tecinvent.ch>> wrote:


Dear list,

I just pulled master and trying to compile by
./subsurface/scripts/build.sh but I'm having some errors regarding
libdivecomputer lib.

...
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to
parent make rule.
[ 15%] Built target TestPlan_automoc
[ 15%] Built target TestRenumber_automoc
[ 15%] Built target documentation
[ 16%] Built target RESOURCE_LIBRARY
[ 25%] Built target subsurface_generated_ui
[ 25%] Building CXX object

desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/statisticswidget.cpp.o
Scanning dependencies of target subsurface_profile
[ 25%] Building CXX object
profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o
Scanning dependencies of target subsurface_models
[ 25%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/cleanertablemodel.cpp.o
Scanning dependencies of target subsurface_corelib
[ 25%] Building C object
core/CMakeFiles/subsurface_corelib.dir/cochran.c.o
/home/ivan/projects/subsurface/profile-widget/profilewidget2.cpp:26:36:
fatal error: libdivecomputer/parser.h: No such file or directory
compilation terminated.
profile-widget/CMakeFiles/subsurface_profile.dir/build.make:62:
recipe for target
'profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o'
failed
make[2]: ***
[profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o]
Error 1
CMakeFiles/Makefile2:646: recipe for target
'profile-widget/CMakeFiles/subsurface_profile.dir/all' failed
make[1]: *** [profile-widget/CMakeFiles/subsurface_profile.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs
[ 25%] Building CXX object

desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/yearstatistics.cpp.o
/home/ivan/projects/subsurface/core/cochran.c:22:36: fatal error:
libdivecomputer/parser.h: No such file or directory
compilation terminated.
core/CMakeFiles/subsurface_corelib.dir/build.make:62: recipe for
target 'core/CMakeFiles/subsurface_corelib.dir/cochran.c.o' failed
make[2]: *** [core/CMakeFiles/subsurface_corelib.dir/cochran.c.o]
Error 1
make[2]: *** Waiting for unfinished jobs
[ 25%] Building C object
core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o
[ 26%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/cylindermodel.cpp.o
In file included from
/home/ivan/projects/subsurface/core/datatrak.h:6:0,
                  from
/home/ivan/projects/subsurface/core/datatrak.c:12:
/home/ivan/projects/subsurface/core/libdivecomputer.h:11:37: fatal
error: libdivecomputer/version.h: No such file or directory
compilation terminated.
core/CMakeFiles/subsurface_corelib.dir/build.make:86: recipe for
target 'core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o' failed
make[2]: *** [core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o]
Error 1
CMakeFiles/Makefile2:468: recipe for target
'core/CMakeFiles/subsurface_corelib.dir/all' failed
make[1]: *** [core/CMakeFiles/subsurface_corelib.dir/all] Error 2
[ 26%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/diveplannermodel.cpp.o
[ 27%] Building CXX object

desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/statisticsbar.cpp.o
[ 27%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/models.cpp.o
[ 27%] Building CXX object

desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/monthstatistics.cpp.o
[ 27%] Building CXX object

desktop-widgets/CMakeFiles/subsurface_statistics.dir/subsurface_statistics_automoc.cpp.o
[ 28%] Linking CXX static library libsubsurface_statistics.a
[ 28%] Built target subsurface_statistics
[ 29%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/filtermodels.cpp.o
[ 29%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/tankinfomodel.cpp.o
[ 29%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/weigthsysteminfomodel.cpp.o
[ 30%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/weightmodel.cpp.o
[ 30%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/divecomputermodel.cpp.o
[ 30%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/treemodel.cpp.o
[ 31%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/yearlystatisticsmodel.cpp.o
[ 31%] Building CXX object
qt-models/CMakeFiles/subsurface_models.dir/divetripmodel.cp

Unable to compile on master

2017-12-19 Thread Ivan Wagner

Dear list,

I just pulled master and trying to compile by 
./subsurface/scripts/build.sh but I'm having some errors regarding 
libdivecomputer lib.


...
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent 
make rule.

[ 15%] Built target TestPlan_automoc
[ 15%] Built target TestRenumber_automoc
[ 15%] Built target documentation
[ 16%] Built target RESOURCE_LIBRARY
[ 25%] Built target subsurface_generated_ui
[ 25%] Building CXX object 
desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/statisticswidget.cpp.o

Scanning dependencies of target subsurface_profile
[ 25%] Building CXX object 
profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o

Scanning dependencies of target subsurface_models
[ 25%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/cleanertablemodel.cpp.o

Scanning dependencies of target subsurface_corelib
[ 25%] Building C object core/CMakeFiles/subsurface_corelib.dir/cochran.c.o
/home/ivan/projects/subsurface/profile-widget/profilewidget2.cpp:26:36: 
fatal error: libdivecomputer/parser.h: No such file or directory

compilation terminated.
profile-widget/CMakeFiles/subsurface_profile.dir/build.make:62: recipe 
for target 
'profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o' 
failed
make[2]: *** 
[profile-widget/CMakeFiles/subsurface_profile.dir/profilewidget2.cpp.o] 
Error 1
CMakeFiles/Makefile2:646: recipe for target 
'profile-widget/CMakeFiles/subsurface_profile.dir/all' failed

make[1]: *** [profile-widget/CMakeFiles/subsurface_profile.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs
[ 25%] Building CXX object 
desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/yearstatistics.cpp.o
/home/ivan/projects/subsurface/core/cochran.c:22:36: fatal error: 
libdivecomputer/parser.h: No such file or directory

compilation terminated.
core/CMakeFiles/subsurface_corelib.dir/build.make:62: recipe for target 
'core/CMakeFiles/subsurface_corelib.dir/cochran.c.o' failed

make[2]: *** [core/CMakeFiles/subsurface_corelib.dir/cochran.c.o] Error 1
make[2]: *** Waiting for unfinished jobs
[ 25%] Building C object core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o
[ 26%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/cylindermodel.cpp.o

In file included from /home/ivan/projects/subsurface/core/datatrak.h:6:0,
 from /home/ivan/projects/subsurface/core/datatrak.c:12:
/home/ivan/projects/subsurface/core/libdivecomputer.h:11:37: fatal 
error: libdivecomputer/version.h: No such file or directory

compilation terminated.
core/CMakeFiles/subsurface_corelib.dir/build.make:86: recipe for target 
'core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o' failed

make[2]: *** [core/CMakeFiles/subsurface_corelib.dir/datatrak.c.o] Error 1
CMakeFiles/Makefile2:468: recipe for target 
'core/CMakeFiles/subsurface_corelib.dir/all' failed

make[1]: *** [core/CMakeFiles/subsurface_corelib.dir/all] Error 2
[ 26%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/diveplannermodel.cpp.o
[ 27%] Building CXX object 
desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/statisticsbar.cpp.o
[ 27%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/models.cpp.o
[ 27%] Building CXX object 
desktop-widgets/CMakeFiles/subsurface_statistics.dir/statistics/monthstatistics.cpp.o
[ 27%] Building CXX object 
desktop-widgets/CMakeFiles/subsurface_statistics.dir/subsurface_statistics_automoc.cpp.o

[ 28%] Linking CXX static library libsubsurface_statistics.a
[ 28%] Built target subsurface_statistics
[ 29%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/filtermodels.cpp.o
[ 29%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/tankinfomodel.cpp.o
[ 29%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/weigthsysteminfomodel.cpp.o
[ 30%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/weightmodel.cpp.o
[ 30%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/divecomputermodel.cpp.o
[ 30%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/treemodel.cpp.o
[ 31%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/yearlystatisticsmodel.cpp.o
[ 31%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/divetripmodel.cpp.o
[ 31%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/divecomputerextradatamodel.cpp.o
[ 31%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/completionmodels.cpp.o
[ 32%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/divepicturemodel.cpp.o
[ 32%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/diveplotdatamodel.cpp.o
[ 32%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/divelocationmodel.cpp.o
[ 33%] Building CXX object 
qt-models/CMakeFiles/subsurface_models.dir/ssrfsortfilterproxymodel.cpp.o
[ 33%] Building CXX object 

Tidal predictions?

2017-07-29 Thread Ivan Wagner

Hey all,

did anyone ever thought it could be useful to add tidal predictions 
within subsurface? This could be a very nice feature especially for 
those working as divemasters around the world...


Have a nice day,

Ivan


___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Bluetooth blues solved (sort of)

2015-10-29 Thread Ivan Wagner
>> The problem I encountered is OS-specific to the Ubuntu bluetooth
>> interface. After loading external software and not using the built-in
>> Ubuntu tool, I am able to download the Petrel reliably.

Dear Willem,

I'm facting similar issues. What external software are you actually
using at the moment? I'm on ubuntu LTS 14.04.

Thank you for the info,

ivan


On 10/28/2015 05:42 PM, Willem Ferguson wrote:
> On 23/10/2015 16:04, Rick Walsh wrote:
>>
>>
>> I have tested my petrel 2 with two laptop  onboard Bluetooth
>> controllers and 3 usb Bluetooth controllers.
>>
>> From memory, with one of the usb controllers, I needed to enter the
>> PIN  (using bluetoothctl or KDE's bluetooth ui) to pair.  With the
>> others I didn't need to enter a PIN.  I guess the PIN  was assumed
>> when pairing with the other controllers.
>>
>> R
>>
> The problem I encountered is OS-specific to the Ubuntu bluetooth
> interface. After loading external software and not using the built-in
> Ubuntu tool, I am able to download the Petrel reliably. Thank you very
> much for your time with this.
> Kind regards,
> willem
> 
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
> 
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: Dive planner MG, TP and FC

2015-10-14 Thread Ivan Wagner

I think there are two main applications here:

1. for tracking data with the current planner which calculates
everything in detail for every dive sample.
2. for bottom timer users which want to have an idea of the plan thus
calculations are really easy by just adding parameters such as stops,
SAC rate, depth and so on.

These are two different approaches. One gets integrated in today's
subsurface planner, and the other one could be a easy to use custom
calculator (like a normal math calculator) and it would be easy to
implement.

What do you think?

Ivan
On 10/14/2015 04:34 PM, Willem Ferguson wrote:
> On 14/10/2015 16:28, Willem Ferguson wrote:
>> On 14/10/2015 16:05, Robert Helling wrote:
>>> Hi,
>>>
 On 14.10.2015, at 15:26, Willem Ferguson
  wrote:

 This is the gas pressure in the cylinder at the start of the ascent
 phase? This is a meaningful request but would require another selection
 to be made in the planner (gas turn rule). This is something that I use
 all the time in dive planning.
>>>
>>> what would that mean for the planner? Except for recreational mode,
>>> the planner always starts the ascent at the end of the manually
>>> entered waypoints.  Would you want to say something like “go to 80m
>>> and then figure out the pressure at which you have to leave 80m so
>>> you and your buddy make it to the surface with x bars remaining”?
>>>
>>> Best
>>> Robert
>>>
>>> -- 
>> Robert,
>>
>> Correct.
>>
>> Of course, actually, I commonly dive 230 bar and start the ascent at
>> around 90-95 bar, using thirds. So the 77 bars accurately constituting
>> a third is really a bare minimum and it is affected by deco
>> obligations.  But a message indicating "Ascent back gas pressure = 90
>> bar, i.e. within rule-of-thirds pressure (77 bar)" would be helpful.
>> It is an additional bit of safety information that checks the accuracy
>> of the deep section of the overall dive planning outside of
>> Subsurface. Does this make any sense?
> Of course you can see Ferguson' muddled mind here. In a strict thirds
> approach turning would be at around 140 bars in a cave. Reason for every
> bit of additional safety information from the planner. Fortunately I do
> not put my foot in a cave, otherwise I might consider turning at 90 bar!
> 
>> Kind regards,
>> willem
>>
>>
>>
>> ___
>> subsurface mailing list
>> subsurface@subsurface-divelog.org
>> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
> 
> 
> 
> 
> ___
> subsurface mailing list
> subsurface@subsurface-divelog.org
> http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
> 
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Re: [PATCH] Add deco model info strings to shearwater parser

2015-10-14 Thread Ivan Wagner
Dear Anton,

I was watching at the deco model names in your patch. GF in my opinion
is wrong it should be ZHL16 (See:
https://en.wikipedia.org/wiki/B%C3%BChlmann_decompression_algorithm).
It's ok to have the deco info model describing gradient factors
(associated with ZHL16) though.

ivan


On 10/14/2015 08:34 AM, Anton Lundin wrote:
> This adds two strings describing the deco model information of the dive.
> 
> Signed-off-by: Anton Lundin 
> ---
> 
> Anton sends a patch, and its not even for Subsurface?!?
> 
>  src/shearwater_predator_parser.c | 32 
>  1 file changed, 32 insertions(+)
> 
> diff --git a/src/shearwater_predator_parser.c 
> b/src/shearwater_predator_parser.c
> index 5c38e67..cc9edf6 100644
> --- a/src/shearwater_predator_parser.c
> +++ b/src/shearwater_predator_parser.c
> @@ -352,6 +352,38 @@ shearwater_predator_parser_get_field (dc_parser_t 
> *abstract, dc_field_type_t typ
>   string->desc = "FW Version";
>   snprintf(buf, BUFLEN, "%2x", data[19]);
>   break;
> + case 3: /* Deco model */
> + string->desc = "Deco model";
> + switch (data[67]) {
> + case 0:
> + strncpy(buf, "GF", BUFLEN);
> + break;
> + case 1:
> + strncpy(buf, "VPM-B", BUFLEN);
> + break;
> + case 2:
> + strncpy(buf, "VPM-B/GFS", BUFLEN);
> + break;
> + default:
> + return DC_STATUS_DATAFORMAT;
> + }
> + break;
> + case 4: /* Deco model info */
> + string->desc = "Deco model info";
> + switch (data[67]) {
> + case 0:
> + snprintf(buf, BUFLEN, "GF %u/%u", 
> data[4], data[5]);
> + break;
> + case 1:
> + snprintf(buf, BUFLEN, "VPM-B +%u", 
> data[68]);
> + break;
> + case 2:
> + snprintf(buf, BUFLEN, "VPM-B/GFS +%u 
> %%%u", data[68], data[85]);
> + break;
> + default:
> + return DC_STATUS_DATAFORMAT;
> + }
> + break;
>   default:
>   return DC_STATUS_UNSUPPORTED;
>   }
> 
___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface


Dive planner MG, TP and FC

2015-10-14 Thread Ivan Wagner
Dear list,

I was taking a look at the dive planner feature within subsurface and I
see some useful features that could be added:

- Minimum gas (based on a scenario of an out-of-gas event and and ascent
respecting ascent rates, deep stops etc)
- Turn pressure based on gas rule such as all usable, half usable or
rule of thirds
- Fractional consumption at depth with 5 minutes interval.

This is something I use on a daily basis not only for technical dives
but also recreational dives.

Could this be interesting for you? I could implement something.

Let me know,

ivan


___
subsurface mailing list
subsurface@subsurface-divelog.org
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface