Re: Subsurface HiDPI patches and Android

2014-11-21 Thread Giuseppe Bilotta
On Fri, Nov 21, 2014 at 08:55:46PM +0100, Anton Lundin wrote: > I built a new Subsurface-android for my phone and noted that the > HiDPI-patches did some wonders on the usability of Subsurface on > Android. Now it's almost usable. Glad to hear that! I would have guessed that the influence would go

Re: [PATCH] Add libdivecomputer and libgit2 to Ubuntu building

2014-11-21 Thread Dirk Hohndel
On Sat, Nov 22, 2014 at 06:49:39AM +0200, Miika Turkia wrote: > Some instructions how building libdivecomputer differs from Subsurface > build. And mention to copy libigt2 over to other repository if needed. I have started to play with this and would like go a slightly different path (but I'd like

[PATCH] Add libdivecomputer and libgit2 to Ubuntu building

2014-11-21 Thread Miika Turkia
Some instructions how building libdivecomputer differs from Subsurface build. And mention to copy libigt2 over to other repository if needed. Signed-off-by: Miika Turkia --- Readme.ubuntu | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Readme.ubuntu b/R

Re: Subsurface HiDPI patches and Android

2014-11-21 Thread Anton Lundin
On 21 November, 2014 - Dirk Hohndel wrote: > On Fri, Nov 21, 2014 at 08:55:46PM +0100, Anton Lundin wrote: > > I built a new Subsurface-android for my phone and noted that the > > HiDPI-patches did some wonders on the usability of Subsurface on > > Android. Now it's almost usable. > > Awesome! I

Re: serial and firmware -- please help

2014-11-21 Thread Anton Lundin
On 21 November, 2014 - Dirk Hohndel wrote: > On Fri, Nov 21, 2014 at 11:57:43PM +0100, Anton Lundin wrote: > > > > There are some code in configuredivecomputerthreads.cpp that handles > > Suunto firmware and serial, and HW firmware and serial, that can be > > re-used / replaced. > > > > Btw. tha

Re: deviceid

2014-11-21 Thread Anton Lundin
On 21 November, 2014 - boret wrote: > Hi Anton. > > On Viernes, 21 de noviembre de 2014 16:59:30 Anton Lundin escribió: > > > My regular cycle is: > > * open subsurface > > * download from the ostc > > * see how it downloads duplicates of lots of dives, and thus screwing up > > the nice cleane

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 11:57:43PM +0100, Anton Lundin wrote: > > There are some code in configuredivecomputerthreads.cpp that handles > Suunto firmware and serial, and HW firmware and serial, that can be > re-used / replaced. > > Btw. that code treats serial as a number due to how the DeviceDeta

Re: serial and firmware -- please help

2014-11-21 Thread Anton Lundin
On 20 November, 2014 - Dirk Hohndel wrote: > So I pushed a patch that will dump some data to stderr when you download > dives from your dive computer. And I'd love for as many people as possible > to run this against all the dive computers you can get your hands on and > respond to this email with

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On November 21, 2014 2:02:40 PM Henrik Brautaset Aronsen wrote: Dirk Hohndel wrote: > That's byte by byte encoding again > 94 80 30 72 decimal > 5E 50 1E 48 hex > > 0x5e501e48 = 1582308936 > > ditto for the firmware > > 65540 = 0x10004 -> 01 00 04 -> 1.0.4 Seems you've done that calculation

Re: deviceid

2014-11-21 Thread boret
Hi Anton. On Viernes, 21 de noviembre de 2014 16:59:30 Anton Lundin escribió: > My regular cycle is: > * open subsurface > * download from the ostc > * see how it downloads duplicates of lots of dives, and thus screwing up > the nice cleaned gas lists ^^ I think this is

Re: serial and firmware -- please help

2014-11-21 Thread Henrik Brautaset Aronsen
Dirk Hohndel wrote: That's byte by byte encoding again 94 80 30 72 decimal 5E 50 1E 48 hex 0x5e501e48 = 1582308936 ditto for the firmware 65540 = 0x10004 -> 01 00 04 -> 1.0.4 Seems you've done that calculation earlier: http://trac.subsurface-divelog.org/browser/subsurface/device.h?rev=1aa

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 10:53:20PM +0100, Henrik Brautaset Aronsen wrote: > Dirk Hohndel wrote: > >So I pushed a patch that will dump some data to stderr when you download > >dives from your dive computer. And I'd love for as many people as possible > >to run this against all the dive computers you

Re: serial and firmware -- please help

2014-11-21 Thread Henrik Brautaset Aronsen
Dirk Hohndel wrote: So I pushed a patch that will dump some data to stderr when you download dives from your dive computer. And I'd love for as many people as possible to run this against all the dive computers you can get your hands on and respond to this email with a) what Subsurface showed ab

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 10:24:29PM +0100, Henrik Brautaset Aronsen wrote: > Dirk Hohndel wrote: > >So I pushed a patch that will dump some data to stderr when you download > >dives from your dive computer. And I'd love for as many people as possible > >to run this against all the dive computers you

Re: serial and firmware -- please help

2014-11-21 Thread Henrik Brautaset Aronsen
Dirk Hohndel wrote: So I pushed a patch that will dump some data to stderr when you download dives from your dive computer. And I'd love for as many people as possible to run this against all the dive computers you can get your hands on and respond to this email with a) what Subsurface showed ab

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 12:53:20PM -0800, Linus Torvalds wrote: > On Fri, Nov 21, 2014 at 12:47 PM, Joakim Bygdell wrote: > > > > From my OSTC3 > > Serial is correct, Well, the format with the '-' is incorrect. The OSTC3 reports it just as a number with no leading zeroes, correct? > > but the fi

Re: serial and firmware -- please help

2014-11-21 Thread Dirk Hohndel
On Sat, Nov 22, 2014 at 07:15:13AM +1100, Rick Walsh wrote: > On 21 November 2014 10:41, Dirk Hohndel wrote: > > So I pushed a patch that will dump some data to stderr when you download > > dives from your dive computer. And I'd love for as many people as possible > > to run this against all the d

Re: serial and firmware -- please help

2014-11-21 Thread Joakim Bygdell
> On 21 Nov 2014, at 21:53, Linus Torvalds > wrote: > > On Fri, Nov 21, 2014 at 12:47 PM, Joakim Bygdell wrote: >> >> From my OSTC3 >> Serial is correct, but the firmware should be 1.60. >> libdc devinfo firmware version converted to 03.16 > > So the firmware version is byte-based: decimal 3

Re: serial and firmware -- please help

2014-11-21 Thread Linus Torvalds
On Fri, Nov 21, 2014 at 12:47 PM, Joakim Bygdell wrote: > > From my OSTC3 > Serial is correct, but the firmware should be 1.60. > libdc devinfo firmware version converted to 03.16 So the firmware version is byte-based: decimal 316 = 0x013c = two bytes of 0x01 (1) and 0x3c (60).

Re: serial and firmware -- please help

2014-11-21 Thread Joakim Bygdell
> On 21 Nov 2014, at 0:41, Dirk Hohndel wrote: > > So I pushed a patch that will dump some data to stderr when you download > dives from your dive computer. And I'd love for as many people as possible > to run this against all the dive computers you can get your hands on and > respond to this em

Re: Subsurface HiDPI patches and Android

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 08:55:46PM +0100, Anton Lundin wrote: > I built a new Subsurface-android for my phone and noted that the > HiDPI-patches did some wonders on the usability of Subsurface on > Android. Now it's almost usable. Awesome! I keep wanting to find the time to play with that. But som

Re: serial and firmware -- please help

2014-11-21 Thread Rick Walsh
On 21 November 2014 10:41, Dirk Hohndel wrote: > So I pushed a patch that will dump some data to stderr when you download > dives from your dive computer. And I'd love for as many people as possible > to run this against all the dive computers you can get your hands on and > respond to this email

Subsurface HiDPI patches and Android

2014-11-21 Thread Anton Lundin
I built a new Subsurface-android for my phone and noted that the HiDPI-patches did some wonders on the usability of Subsurface on Android. Now it's almost usable. There are still a bunch of problems, but some more HiDPI-fixes and its almost working =) //Anton -- Anton Lundin+46702-161604

[PATCH] Create a subsurface_access for Android too

2014-11-21 Thread Anton Lundin
Signed-off-by: Anton Lundin --- android.cpp | 5 + 1 file changed, 5 insertions(+) diff --git a/android.cpp b/android.cpp index 1e99a5c..0bb7db0 100644 --- a/android.cpp +++ b/android.cpp @@ -69,6 +69,11 @@ void *subsurface_opendir(const char *path) return (void *)opendir(path); }

Re: post 4.3 - git dialogs

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 09:30:17AM -0800, Dirk Hohndel wrote: > > d) opening / saving to local git [...] >loading is kinda hard right now. We use QFileDialog::getOpenFileName to >get the file to load from the user and that dialog only returns >existing files, so our syntax for entering

post 4.3 - git dialogs

2014-11-21 Thread Dirk Hohndel
I've been looking into this and Tomaz asked me something about Dropbox and Google Drive and so I figured I might as well document this in email so people can comment. Once thing I want to add after 4.3 is a user friendly way to interact with storage that isn't just a local XML file. We already hav

Re: Thoughts on Bug 717

2014-11-21 Thread Joakim Bygdell
> On 21 Nov 2014, at 18:04, Dirk Hohndel wrote: > > On Fri, Nov 21, 2014 at 05:35:59PM +0100, Joakim Bygdell wrote: >> >>> On 21 Nov 2014, at 16:38, John Van Ostrand wrote: >>> >>> To address the position of the temperature graph on the dive profile window >>> how about allowing the user to

Re: Thoughts on Bug 717

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 05:35:59PM +0100, Joakim Bygdell wrote: > > > On 21 Nov 2014, at 16:38, John Van Ostrand wrote: > > > > To address the position of the temperature graph on the dive profile window > > how about allowing the user to move the graph out of the way? > A totally different app

Re: Thoughts on Bug 717

2014-11-21 Thread Tomaz Canabrava
On Fri, Nov 21, 2014 at 2:35 PM, Joakim Bygdell wrote: > > > On 21 Nov 2014, at 16:38, John Van Ostrand wrote: > > > > To address the position of the temperature graph on the dive profile > window how about allowing the user to move the graph out of the way? > A totally different approach that t

Re: serial and firmware -- please help

2014-11-21 Thread Linus Torvalds
On Fri, Nov 21, 2014 at 8:18 AM, Willem Ferguson wrote: > > Uwatec Galileo Sol: > Device serial number reported by Subsurface: 0xfaea5b0f > Device serial number of dive computer: 6105832328 Firmware version 1.1 I'm not seeing the encoding pattern at all for this case. Looking at libdivecomputer,

Re: Thoughts on Bug 717

2014-11-21 Thread Joakim Bygdell
> On 21 Nov 2014, at 16:38, John Van Ostrand wrote: > > To address the position of the temperature graph on the dive profile window > how about allowing the user to move the graph out of the way? A totally different approach that the patch I sen on Nov 2 that simply moved the temp graph to the

Re: Thoughts on Bug 717

2014-11-21 Thread Tomaz Canabrava
On Fri, Nov 21, 2014 at 2:09 PM, John Van Ostrand wrote: > On Fri, Nov 21, 2014 at 10:57 AM, Tomaz Canabrava > wrote: > >> This actually seems Nice for every kind of graph besides the main one. >> Did you managed to do it in a good way? ( we have three graphics items >> associated with a graph,

Re: serial and firmware -- please help

2014-11-21 Thread Willem Ferguson
On 21/11/2014 01:41, Dirk Hohndel wrote: So I pushed a patch that will dump some data to stderr when you download dives from your dive computer. And I'd love for as many people as possible to run this against all the dive computers you can get your hands on and respond to this email with a) what

[PATCH] Instructions for building Ubuntu packages

2014-11-21 Thread Miika Turkia
Signed-off-by: Miika Turkia --- Readme.ubuntu | 65 +++ 1 file changed, 65 insertions(+) create mode 100644 Readme.ubuntu diff --git a/Readme.ubuntu b/Readme.ubuntu new file mode 100644 index 000..c81f11c --- /dev/null +++ b/Readme.ubu

Re: deviceid

2014-11-21 Thread boret
On Viernes, 21 de noviembre de 2014 16:30:04 Dirk Hohndel escribió: > On Fri, Nov 21, 2014 at 11:23:28AM +0100, Salvador Cuñat wrote: > > El 20/11/2014 16:37, "Dirk Hohndel" escribió: > > > The problem is, of course, that with every firmware update (and those > > > are becoming much more frequent,

Re: deviceid

2014-11-21 Thread Anton Lundin
On 21 November, 2014 - Dirk Hohndel wrote: > On Fri, Nov 21, 2014 at 11:23:28AM +0100, Salvador Cuñat wrote: > > El 20/11/2014 16:37, "Dirk Hohndel" escribió: > > > > > The problem is, of course, that with every firmware update (and those are > > > becoming much more frequent, as you are seeing

Thoughts on Bug 717

2014-11-21 Thread John Van Ostrand
To address the position of the temperature graph on the dive profile window how about allowing the user to move the graph out of the way? -- John Van Ostrand At large on sabbatical From 34050397276fe9d6a8885ee4f8a379cb458fd282 Mon Sep 17 00:00:00 2001 From: John Van Ostrand Date: Fri, 21 Nov 201

Re: deviceid

2014-11-21 Thread Dirk Hohndel
On Fri, Nov 21, 2014 at 11:23:28AM +0100, Salvador Cuñat wrote: > El 20/11/2014 16:37, "Dirk Hohndel" escribió: > > > The problem is, of course, that with every firmware update (and those are > > becoming much more frequent, as you are seeing yourself), you get a new > > deviceid and we redownloa

Three patches for the planner

2014-11-21 Thread Robert Helling
Hi,here are three patches addressing issues in the planner. 0001 let’s the planner use CCR all the way to the surface, even when deco gases are defined.0002 Includes set-point information in the dive plan0003 corrects makes the gas change appear in the correct line in the dive plan (this was painfu

[PATCH] calculate start/end cylinder pressures for oxygen

2014-11-21 Thread Willem Ferguson
Subject: [PATCH] Update fixup_pressure to calculate CCR oxygen cylinderpressures Fixup_pressure() needs to calculate the cylinder pressures at the start and at the end of the dive, also for CCR oxygen cylinders. Since, in the case of CCR, the default cylinder is the diluent, this is not automati

[PATCH] Correct bug in XML export

2014-11-21 Thread Willem Ferguson
Subject: [PATCH] Save-XML: Correct bug in cylinder gas parameters Correct a bug that I introduced previously. Signed-off-by: willem ferguson >From 45570d66ecf238aec8997f5d0c20c01dfe0aa4fa Mon Sep 17 00:00:00 2001 From: willem ferguson Date: Fri, 21 Nov 2014 14:59:14 +0200 Subject: [PATCH] Sav

Re: deviceid

2014-11-21 Thread Salvador Cuñat
El 20/11/2014 16:37, "Dirk Hohndel" escribió: > The problem is, of course, that with every firmware update (and those are > becoming much more frequent, as you are seeing yourself), you get a new > deviceid and we redownload all dives :-( > Hi Dirk. I don't think this is absolutely true, at least