Skip to content
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

Shearwater: Add Stack Timer Information. #61

Merged

Conversation

mikeller
Copy link
Member

@mikeller mikeller commented May 4, 2024

Add the configured stack run time and the remaining stack run time at the start and end of the dive as extra information.

image

@glance-
Copy link
Contributor

glance- commented May 6, 2024

Nice. I Just started 3 days ago looking into the data for these values! 👍

@glance-
Copy link
Contributor

glance- commented May 6, 2024

Are you certain that these values are unsigned? Have you looked at these values when you go over your configured stack time? I'm reasonably certain that I've seen stack-time gone negative on the computer when you've exceeded your configured stack time.

I think I might have some such values in my computer and I'll play around with this later this week.

@glance-
Copy link
Contributor

glance- commented May 6, 2024

Ok, I actually got around to look at this tonight. Time remaining is just 0 when you've gone over your configured stack time. I haven't manage to view this data either on the computer or in the shearwater app. It's probably to new feature for them to have implemented it.

The only thing I can think of is that the key strings are quite long. I'm not sure if describing the format "[hh:mm:ss]" is necessary, and the "stack run time" is longer than the name shearwater uses, which is just "stack time".

I'd vote for "Configured stack time", "Stack time at start" and "Stack time at end".

@mikeller
Copy link
Member Author

mikeller commented May 6, 2024

Thanks for checking the 'going negative' part.
The stack timer on the Shearwater starts giving a non-suppressable warning whenever the remaining stack time goes under 30 minutes, which to me is not desirable during the last minutes of decompression, so I always configure my stack timer to be desired maximum stack run time plus 30 minutes, and consequently have never come close to 0 on the timer.

Re Extra Info Key names, there is a lot of space in the Extra Info tab, and the density of information displayed there is relatively low compared to other tabs, so I figure we may as well use it for key names. But I'll have a think about changing the names.

image

I also think it pays to be concise and add units to values that are returned, and getting a 'xx:yy' value returned (which is how this started out before I discovered that Shearwater is logging seconds for the stack run time), and not knowing if this is hh:mm or mm:ss is one annoying thing that you run into if there is no conciseness about units.

@mikeller mikeller force-pushed the add_shearwater_stack_status branch from 4a9431b to 72e51f0 Compare May 7, 2024 01:11
@mikeller
Copy link
Member Author

mikeller commented May 7, 2024

I ended up going for 'Configured stack time', 'Remaining stack time at start', and 'Remaining stack time at end', as to me 'xxx time' seems to imply that this is a dimension that is counting up, whereas 'remaining xxx time' clarifies that it is counting down.

if (logversion >= 11) {
if (stack_time_total_s > 0) {
stack_time_remaining_s = array_uint16_be(data + offset + 3);
dc_field_add_string_fmt(&parser->cache, "Remaining stack time at end [hh:mm]", "%d:%02d:%02d", stack_time_remaining_s / 3600, (stack_time_remaining_s / 60) % 60, stack_time_remaining_s % 60);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be hh:mm:ss as the others?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, thanks, fixed.

Add the configured stack run time and the remaining stack run time at
the start and end of the dive as extra information.

Signed-off-by: Michael Keller <[email protected]>
@mikeller mikeller force-pushed the add_shearwater_stack_status branch from 72e51f0 to fa224f5 Compare May 7, 2024 07:41
@mikeller mikeller merged commit 9f2674e into subsurface:Subsurface-DS9 May 8, 2024
8 checks passed
@mikeller mikeller deleted the add_shearwater_stack_status branch May 8, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants