Re: thinking about 4.7

2017-09-22 Thread John Van Ostrand
ron Scheiner <b...@aquarat.za.net> >>> >wrote: >>> >> >>> >> Great :) >>> >> >>> >> I use Ubuntu 17.04 x64 as my primary OS, but I also have Windows 10 >>> >on a few >>> >> machines and I run Su

Re: Oreo - has anyone tested the Subsurface-mobile app?

2017-09-07 Thread John Van Ostrand
unt dives.) > > I have a skeleton for a libusb patch for that but nothing that works. > > (Its basically diverting linux_scan_devices() into subsurface code which > calls the Android api's via jni to feed the data into libusb, just like > we're doing with the and

[PATCH] Flagged Cochran DCs for FTDI communications

2017-09-06 Thread John Van Ostrand
This with serial_ftdi.c changes and other libdivecomputer changes enables Cochran DCs to work with libftdi on android devices. Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- src/descriptor.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 3/3] Implemented serial_set_break for FTDI

2017-09-05 Thread John Van Ostrand
Setting break is required to wake up Cochran DCs (it doesn't make sense to me, but it's needed). Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/serial_ftdi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/core/serial_ftdi.c

[PATCH 1/3] Changed backoff strategy for short reads.

2017-09-05 Thread John Van Ostrand
Back off was exponential starting at 10ms, which for high baud rate and no flow-control connections might cause buffer overrun. This was causing problems when reading Cochran DCs, the hearbeat byte was being missed. Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/serial_ftdi

[PATCH] Implemented serial_set_break for FTDI

2017-09-05 Thread John Van Ostrand
Setting break is required to wake up Cochran DCs (it doesn't make sense to me, but it's needed). Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/serial_ftdi.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/core/serial_ftdi.c

[PATCH] Flagged Cochran DCs for FTDI communications

2017-09-05 Thread John Van Ostrand
This with serial_ftdi.c changes and other libdivecomputer changes enables Cochran DCs to work with libftdi on android devices. Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- src/descriptor.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

[PATCH 3/3] Implemented serial_set_break for FTDI

2017-09-05 Thread John Van Ostrand
Setting break is required to wake up Cochran DCs (it doesn't make sense to me, but it's needed). --- core/serial_ftdi.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c index 88e60c2..90a95f0 100644 ---

[PATCH 1/3] Changed backoff strategy for short reads.

2017-09-05 Thread John Van Ostrand
Back off was exponential starting at 10ms, which for high baud rate and no flow-control connections might cause buffer overrun. This was causing problems when reading Cochran DCs, the hearbeat byte was being missed. --- core/serial_ftdi.c | 7 --- 1 file changed, 7 deletions(-) diff --git

[PATCH 2/3] Changed serial_ftdi flush to a reset if DC_DIRECTION_ALL

2017-09-05 Thread John Van Ostrand
The USB reset flushes both buffers, but it also solves a problem waking up a Cochran DCs. --- core/serial_ftdi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/serial_ftdi.c b/core/serial_ftdi.c index 297d0fa..88e60c2 100644 --- a/core/serial_ftdi.c +++

Serial-ftdi Issues

2017-08-29 Thread John Van Ostrand
I'm trying to get the Cochran computers working with the FTDI library and serial_ftdi so I can read them on an Android biuld. I'm having two issues that I have to ask for advice about.1. In serial_ftdi_read() a failed read exponentially backs off when there's a short read. This is causing

Adding a DC for mobile download

2017-08-21 Thread John Van Ostrand
to 9600 afterwards. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Re: Issues with SAC terminology

2017-07-18 Thread John Van Ostrand
s the target metric to use when planning real world gas usage. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

[PATCH] Cochran import: Removed long tail of 0 depth from profile

2017-05-31 Thread John Van Ostrand
The Cochran logs the first 10 to 20 minutes (configurable) of surface interval in case the diver re-submerges. Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/cochran.c | 12 1 file changed, 12 insertions(+) diff --git a/core/cochran.c b/core/cochran.c index 7

[PATCH] Cochran import: older models allowed for configuration sample frequency This patch adds detection of sample frequency (profile_period) for cochran log file imports.

2017-05-31 Thread John Van Ostrand
Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/cochran.c | 39 +-- core/cochran.h | 2 ++ 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/core/cochran.c b/core/cochran.c index 243a659..f595c0d 100644 --- a/core/cochran.c

[PATCH] Added support for older Cochran models that have configurable sample intervals.

2017-05-26 Thread John Van Ostrand
Corrected problem where dive profiles would include post dive surface interval samples. Added detection for corrupt dives. Signed-off-by: John Van Ostrand <j...@vanostrand.com> --- core/cochran.c | 65 +- core/cochran.h | 4 +++- 2

Re: Retrospective gradient factors on real dives

2016-12-09 Thread John Van Ostrand
go back to view the dive. For the latter question I iterate through GFs manually to find the closest one. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/

Re: No-fly in Subsurface?

2016-07-24 Thread John Van Ostrand
ssure differential that the deco algorithm is > all about. > > Anyway, the normal deco algorithms definitely don't support long > no-fly times. But there may be other valid reasons for them ("you gas > imbalance is a slight stress factor on your body, flying adds _other_ > str

Re: Stupid Question

2016-04-14 Thread John Van Ostrand
ne. > > I built a company that specializes in Linux system integration, so the command line is natural, git not so much. I had staff replace my tech duties before git was popular with admins. That's some very useful insight on how cloud storage and subsurface git integration works. Thanks.

Re: Stupid Question

2016-04-14 Thread John Van Ostrand
, and thedecostop.com might help to attract users and with them contributor should come. I can write passable copy for an amateur, I think. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Re: Stupid Question

2016-04-13 Thread John Van Ostrand
. On Wed, Apr 13, 2016 at 4:53 PM, Dirk Hohndel <d...@hohndel.org> wrote: > You simply go back to the previous version in your git storage. You are > using git storage, right? > > /D > > On Wed, Apr 13, 2016 at 04:49:07PM -0400, John Van Ostrand wrote: > > While testin

Stupid Question

2016-04-13 Thread John Van Ostrand
While testing my libdivecomputer work I've inadvertently imported duplicated dives using different computer names. When I select a dive I see "Cochran EMC-20H (No.2 of 2) listed in the profile window. There's a 150 dives like this. How do I delete dive No.2 of 2, one 150 dives? -- Joh

Bühlmann Planner Tissue Graph

2016-04-09 Thread John Van Ostrand
in the tissue graph doesn't change. 100/100 should show a flat line, 35/75 should show a line that angles up during ascent. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface

VPM-B Tissue Graph

2016-04-09 Thread John Van Ostrand
in the information box reflects bad information too, 10 seconds into the dive it shows near maximum saturation. [image: Inline image 1] [image: Inline image 2] -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface

Re: VPM-B Oddity

2016-04-06 Thread John Van Ostrand
On Tue, Apr 5, 2016 at 10:55 PM, <j...@vanostrand.com> wrote: > > > > John, > > On 6 April 2016 at 12:02, John Van Ostrand <j...@vanostrand.com> wrote: > >> I have an example where VPM-B +0 gives an earlier and longer deco >> obligation than VPM-B +

VPM-B Oddity

2016-04-05 Thread John Van Ostrand
it was reproducible. It seems to be an issue when repetitive dives are included. The SIT was 18 hours. I can provide an XML file to whomever is interested in investigating. The algo implementation is way beyond me. -- John Van Ostrand At large on sabbatical

Re: Release Plans

2016-02-26 Thread John Van Ostrand
t/1015 > indeed seems a components bug, cooking a fix. > > another one bug probably related to components in mind? > I'm rushing to get Cochran DC imports accepted into libdivecomputer in hopes it makes it into a Subsurface release soon. -- John Van Ostrand At large on sabbatical _

Re: F

2015-08-22 Thread John Van Ostrand
Now if I can only get this implant to track my inert gas diffusion. ;) On Sat, Aug 22, 2015 at 3:27 PM, Lubomir I. Ivanov neolit...@gmail.com wrote: On 22 August 2015 at 20:50, j...@vanostrand.com wrote: Sent from my BlackBerry 12 neural implant. got a blank email from John Van Ostrand

Generation and location of ui_*.h files

2015-01-09 Thread John Van Ostrand
files are moved to /. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Build problems

2015-01-07 Thread John Van Ostrand
. -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Suunto SDE Import

2014-12-07 Thread John Van Ostrand
possible and as such this can't be a good scheme. Is there a way in an XSLT to replace 0 samples with the previous non-zero temperature? -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http

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 j...@vanostrand.com

[PATCH] Small changes to Yearly Statistics window

2014-11-20 Thread John Van Ostrand
Added a title bar with close button. Set an appropriate title. Centred the window relative to mainwindow. Signed-off-by: John Van Ostrand j...@vanostrand.com --- qt-ui/mainwindow.cpp | 4 1 file changed, 4 insertions(+) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 9b82f21

[PATCH 3/3] Support for Liquivision version 2 log files.

2014-11-09 Thread John Van Ostrand
I was able to test against a v2.0 log file and fixed some problems. Also removed a file save that was being done for debug purposes. Signed-off-by: John Van Ostrand j...@vanostrand.com --- liquivision.c | 137 +++--- 1 file changed, 83

Decoding single precision bytes

2014-11-07 Thread John Van Ostrand
Hi, The log import I'm writing has floats stored in the file in binary format. Are floats portable enough to reference directly, like this: start_cns = *(float *) buf; -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface

Re: Liquid Vision dive log/Lynx support?

2014-11-07 Thread John Van Ostrand
On Fri, Nov 7, 2014 at 8:54 AM, John Van Ostrand j...@vanostrand.com wrote: On Thu, Nov 6, 2014 at 11:27 PM, Griffon Walker bushi...@gmail.com wrote: Quick follow-up, couldn't bulk export from LV dive logger but was able to export a CVS of single dive. Attached. On Wed Nov 05 2014 at 9:50

[PATCH 1/2] Liquivision import fixes

2014-11-07 Thread John Van Ostrand
Fixed rounding of temperatures Fixed compile warnings --- file.h| 1 + liquivision.c | 8 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/file.h b/file.h index 8c5b48b..d4c52fd 100644 --- a/file.h +++ b/file.h @@ -7,6 +7,7 @@ struct memblock { }; extern int

[PATCH] Cleaned up file list in open and import dialogs

2014-11-07 Thread John Van Ostrand
Lists were getting a little jumbled. I sorted the extensions and added suitable human readable names. --- qt-ui/mainwindow.cpp | 43 +++ 1 file changed, 27 insertions(+), 16 deletions(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index

Re: [PATCH 1/2] Liquivision import fixes

2014-11-07 Thread John Van Ostrand
I intentionally stripped out the second patch which is the Cleaned-up-file-list-in-open-and-import-dialogs Patch. On Fri, Nov 7, 2014 at 12:51 PM, John Van Ostrand j...@vanostrand.com wrote: Fixed rounding of temperatures Fixed compile warnings --- file.h| 1 + liquivision.c | 8

Re: Setting location coordinates while editing a dive

2014-10-31 Thread John Van Ostrand
On Fri, Oct 31, 2014 at 12:34 PM, Dirk Hohndel d...@hohndel.org wrote: On Fri, Oct 31, 2014 at 11:39:27AM -0400, John Van Ostrand wrote: Mentioning Undo got me thinking. I've been mucking about trying to have globe.cpp both update the editted dive *and* show the currently edit's

[PATCH] Added close button to print preview window title bar.

2014-10-30 Thread John Van Ostrand
Without this I was only able to close it by choosing to print. Signed-off-by: John Van Ostrand j...@vanostrand.com --- qt-ui/printdialog.cpp | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index f8f06ae..a65078b 100644

Re: totally off topic [was: Re: messing with the gas / tank handling]

2014-10-30 Thread John Van Ostrand
-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo

[PATCH] Added English documentation for tissue graph.

2014-10-30 Thread John Van Ostrand
--- Documentation/images/tissues.jpg | Bin 0 - 1270 bytes Documentation/images/tissuesGraph.jpg | Bin 0 - 37994 bytes Documentation/user-manual.txt | 7 +++ 3 files changed, 7 insertions(+) create mode 100644 Documentation/images/tissues.jpg create mode 100644

Re: Globe missing

2014-10-29 Thread John Van Ostrand
is there! Roberto 2014-10-29 17:52 GMT+01:00 Dirk Hohndel d...@hohndel.org: On Wed, Oct 29, 2014 at 12:48:31PM -0400, John Van Ostrand wrote: Any ideas where I should look to see why marble doesn't seem to be working using the head source? ldd shows it linking to the installed lib (Fedora 19

[PATCH] Added Cochran CAN files to the Open Logbook dialog

2014-10-28 Thread John Van Ostrand
Subsurface can now open CAN files as an alternative to importing. Signed-off-by: John Van Ostrand j...@vanostrand.com --- qt-ui/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 9aadfd3..9e62a8a 100644

[PATCH] Added missing files (metrics.cpp and diveshareexportdialog.cpp) to CMakeLists.txt

2014-10-28 Thread John Van Ostrand
It now compiles and links properly under cmake. Signed-off-by: John Van Ostrand j...@vanostrand.com --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a04794a..c04e968 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -123,6 +123,7

[PATCH] Fixed RegExp bug

2014-10-28 Thread John Van Ostrand
This prevented import of log files other than CSV and TXT. Signed-off-by: John Van Ostrand j...@vanostrand.com --- qt-ui/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 9e62a8a..1d4b22a 100644 --- a/qt-ui

Translation question

2014-10-28 Thread John Van Ostrand
? Also, should this be changed since file extensions are not usually translated. Maybe a sprintf to build a string using translations of labels only? -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org

[PATCH] Commented out section waiting on commit from libdivecomputer. It relied on DC_EVENT_BATTERY.

2014-10-27 Thread John Van Ostrand
Signed-off-by: John Van Ostrand j...@vanostrand.com --- cochran.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cochran.c b/cochran.c index 9e31f55..7651441 100644 --- a/cochran.c +++ b/cochran.c @@ -351,11 +351,13 @@ int cochran_dive_event(struct divecomputer *dc, const unsigned char *s

[PATCH] Removed dependence on not yet released libdivecomputer code.

2014-10-27 Thread John Van Ostrand
Signed-off-by: John Van Ostrand j...@vanosrand.com --- cochran.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cochran.c b/cochran.c index 9e31f55..b3ba7b4 100644 --- a/cochran.c +++ b/cochran.c @@ -351,11 +351,13 @@ int cochran_dive_event(struct divecomputer *dc, const unsigned char *s

Older Cochran Log Formats

2014-10-26 Thread John Van Ostrand
Hi, I have access to sample files from older Cochran Analyst software. Has anyone asked about importing older cochran WAN files? -- John Van Ostrand At large on sabbatical ___ subsurface mailing list subsurface@subsurface-divelog.org http