-
Notifications
You must be signed in to change notification settings - Fork 85
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
Shearwater: Add Stack Timer Information. #61
Conversation
Nice. I Just started 3 days ago looking into the data for these values! 👍 |
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. |
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". |
Thanks for checking the 'going negative' part. 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. 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. |
4a9431b
to
72e51f0
Compare
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. |
src/shearwater_predator_parser.c
Outdated
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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]>
72e51f0
to
fa224f5
Compare
Add the configured stack run time and the remaining stack run time at the start and end of the dive as extra information.