Suunto app Forum Suunto Community Forum
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Skitouring

    Scheduled Pinned Locked Moved SuuntoPlus™ Sports Apps
    22 Posts 11 Posters 2.1k Views 12 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sartoricS Offline
      sartoric Moderator @isazi
      last edited by sartoric

      @isazi
      I would prefer a switch instead of if/else if for currentmode check

        switch (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 🙂

      SVTS - 2.40.38
      SSSWHR BARO Amber - 2.8.32
      Samsung A5 2016 - Android 7.0
      Samsung A33 2022 - Android 14 - One UI 6.1
      Suunto App Android 5.2.5 beta
      Suunto App IOs 2.45.0 (19123) beta on MBP M1

      isaziI EzioAuditoreE 2 Replies Last reply Reply Quote 1
      • EgikaE Offline
        Egika Platinum Member @isazi
        last edited by

        @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 🙂

        https://github.com/isazi/skitouring

        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:
        IMG_7665.jpeg

        t6, S6, Elementum Terra, Ambit 3 Sapphire, Spartan Ultra Copper, Traverse Alpha, S7 Graphite LE, S9B Ambassador, S9P Granite Blue Titanium, S9PP Titanium Sand, Vertical All Black, Race Titanium Charcoal,
        Race S All Black - TI Canary - Titanium Courtney

        Stefan KerstingS 1 Reply Last reply Reply Quote 3
        • Stefan KerstingS Offline
          Stefan Kersting @Egika
          last edited by

          @Egika that sounds interesting. Do have to take the watch off or can you have it around your wrist during measuring?

          Instagram: https://www.instagram.com/helgelandsbukken/
          https://www.instagram.com/suunto_adventures/
          IG: Helgelandsbukken, suunto_adventures
          Vimeo: vimeo.com/helgelandsbukken
          Blogg: https://turblogg.midnattsola.com

          EgikaE 1 Reply Last reply Reply Quote 1
          • EgikaE Offline
            Egika Platinum Member @Stefan Kersting
            last edited by

            @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.

            t6, S6, Elementum Terra, Ambit 3 Sapphire, Spartan Ultra Copper, Traverse Alpha, S7 Graphite LE, S9B Ambassador, S9P Granite Blue Titanium, S9PP Titanium Sand, Vertical All Black, Race Titanium Charcoal,
            Race S All Black - TI Canary - Titanium Courtney

            Stefan KerstingS 1 Reply Last reply Reply Quote 0
            • Stefan KerstingS Offline
              Stefan Kersting @Egika
              last edited by Stefan Kersting

              @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

              Instagram: https://www.instagram.com/helgelandsbukken/
              https://www.instagram.com/suunto_adventures/
              IG: Helgelandsbukken, suunto_adventures
              Vimeo: vimeo.com/helgelandsbukken
              Blogg: https://turblogg.midnattsola.com

              EgikaE 1 Reply Last reply Reply Quote 0
              • SuperFlo75S Online
                SuperFlo75 Silver Members Bronze Member
                last edited by SuperFlo75

                And how can I use this on the watch? Looks nice, interesting and useful!

                Suunto Vertical Titanium Forest/Dark Ruby/UTMB/Courtney_Edition
                Suunto Wing
                Suunto 9 Peak Pro Titanium (owns my wife now)
                Suunto Spartan Ultra
                SA iOS 2.43.0 (18473)
                Instagram @superflo75

                1 Reply Last reply Reply Quote 0
                • EgikaE Offline
                  Egika Platinum Member @Stefan Kersting
                  last edited by

                  @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 down

                  Yes, precision is 0.1°
                  Just as mentioned, this is a separate measurement, not derived from altimeter and speed gradient while moving.

                  t6, S6, Elementum Terra, Ambit 3 Sapphire, Spartan Ultra Copper, Traverse Alpha, S7 Graphite LE, S9B Ambassador, S9P Granite Blue Titanium, S9PP Titanium Sand, Vertical All Black, Race Titanium Charcoal,
                  Race S All Black - TI Canary - Titanium Courtney

                  1 Reply Last reply Reply Quote 1
                  • isaziI Offline
                    isazi Moderator @sartoric
                    last edited by

                    @sartoric will clean the code after the holidays

                    Watch: Suunto Vertical Ti

                    Blog: isazi's home

                    H sartoricS 2 Replies Last reply Reply Quote 0
                    • H Online
                      halajos Bronze Member @isazi
                      last edited by

                      Wow, I want S+ API access! 😊

                      1 Reply Last reply Reply Quote 3
                      • sartoricS Offline
                        sartoric Moderator @isazi
                        last edited by

                        @isazi
                        I can push a PR … 😁 😁

                        SVTS - 2.40.38
                        SSSWHR BARO Amber - 2.8.32
                        Samsung A5 2016 - Android 7.0
                        Samsung A33 2022 - Android 14 - One UI 6.1
                        Suunto App Android 5.2.5 beta
                        Suunto App IOs 2.45.0 (19123) beta on MBP M1

                        1 Reply Last reply Reply Quote 0
                        • EzioAuditoreE Offline
                          EzioAuditore Gold Members @sartoric
                          last edited by

                          @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 🙂

                          Suunto watches: Ocean (Sand), Race (Titanium Charcoal), Vertical (Titanium Solar Sand), 9 Baro (Ambassador Edition), Spartan Ultra (Copper Edition), Ambit 2, S6
                          Suunto Wing

                          tazidenT 1 Reply Last reply Reply Quote 0
                          • tazidenT Offline
                            taziden Gold Members @EzioAuditore
                            last edited by

                            @EzioAuditore under the hood, it’s Duktape if I’m not mistaken https://duktape.org/

                            S9PP

                            isaziI 1 Reply Last reply Reply Quote 1
                            • isaziI Offline
                              isazi Moderator @taziden
                              last edited by

                              @taziden I think you’re right

                              Watch: Suunto Vertical Ti

                              Blog: isazi's home

                              1 Reply Last reply Reply Quote 0
                              • Mauro Del RomanoM Offline
                                Mauro Del Romano @isazi
                                last edited by

                                @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?

                                DMytroD 1 Reply Last reply Reply Quote 0
                                • DMytroD Offline
                                  DMytro @Mauro Del Romano
                                  last edited by

                                  @Mauro-Del-Romano with hill climber app?

                                  Mauro Del RomanoM 1 Reply Last reply Reply Quote 0
                                  • Mauro Del RomanoM Offline
                                    Mauro Del Romano @DMytro
                                    last edited by

                                    @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?

                                    DMytroD 1 Reply Last reply Reply Quote 0
                                    • DMytroD Offline
                                      DMytro @Mauro Del Romano
                                      last edited by

                                      @Mauro-Del-Romano I think not, but another app, Safe, can do it.

                                      Mauro Del RomanoM 1 Reply Last reply Reply Quote 0
                                      • Mauro Del RomanoM Offline
                                        Mauro Del Romano @DMytro
                                        last edited by

                                        @DMytro thank you.

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post

                                        Suunto Terms | Privacy Policy