Skitouring
-
@Brad_Olwin near the city it will take some weeks before we have good conditions. But about 2 hours driving we have a glaciers and there it’s possible to ski already
-
@isazi
I would prefer a switch instead of if/else if for currentmode checkswitch (currentMode) { case 0: // code here break; case 1: // code here break; case 2: // code here break; }
It should be a bit faster
You could also move the if
if ( Math.abs(referenceAltitude - currentAltitude) > threshold ) {
outside the switch (if I didn’t miss anything) to avoid useless operation
… sorry … professional deformation
-
@isazi said in Skitouring:
From an idea of @Egika last year I implemented a skitouring app. Winter and snow are soon coming to the northern hemisphere and I think I’ll finish it (need to not register a lap when pressing the lower button to measure slopes). I’ll add screenshots after the holidays
The idea is, to have to have the following data ready:
altitude
vertical speed
ETE based on remaining climb and distance, not on current speed (as there is a significant change in speed for ascent to descent)
And - tadaa: the slope angle, measured by pressing the lower button while holding the watch against a pole or aiming up or downhill. Required for avalanche danger assessment.
Plus a barometric indicator.
It looks like this:
-
@Egika that sounds interesting. Do have to take the watch off or can you have it around your wrist during measuring?
-
@Stefan-Kersting said in Skitouring:
@Egika that sounds interesting. Do have to take the watch off or can you have it around your wrist during measuring?
You just press the lower button once to enable slope angle measurement, and you press it again to lock the current value.
Basically it measures the watch tilting angle by reading out the accelerometer data in 3D.
In which way you position your watch is up to you. -
@Egika have you done some testing how precise the measurements is in ± degrees?
It would be nice to have a field when using backcountry ski mode that shows the slope in degrees and not in percent. Both when going up and running down -
And how can I use this on the watch? Looks nice, interesting and useful!
-
@Stefan-Kersting said in Skitouring:
@Egika have you done some testing how precise the measurements is in ± degrees?
It would be nice to have a field when using backcountry ski mode that shows the slope in degrees and not in percent. Both when going up and running downYes, precision is 0.1°
Just as mentioned, this is a separate measurement, not derived from altimeter and speed gradient while moving. -
@sartoric will clean the code after the holidays
-
Wow, I want S+ API access!
-
@isazi
I can push a PR … -
@sartoric if (or if else) is usually faster than switch. Some C banchmark here: https://www.ideone.com/GXKX3j
Since this is JS though it must be “compiled” to something that the watch can run? So maybe under the hood it is translated to if else -
@EzioAuditore under the hood, it’s Duktape if I’m not mistaken https://duktape.org/
-
@taziden I think you’re right
-
@isazi Hi, when ski touring sport app will be available for s9baro? thanks!
I’m sorry but is it possible on this watch to track automatically or manually hill descent switching at the end of climbing? -
@Mauro-Del-Romano with hill climber app?
-
@DMytro exactly! I looked into it and that’s the answer, thanks. Do you maybe know if is it possible to add gps coordinates as parameters on sports screens?
-
@Mauro-Del-Romano I think not, but another app, Safe, can do it.
-
@DMytro thank you.