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

    Ambit Apps Compilation

    Scheduled Pinned Locked Moved Digital service transition
    43 Posts 14 Posters 5.0k Views
    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.
    • Raimo JärviR Offline
      Raimo Järvi @Dubosson Aurélien
      last edited by

      @Dubosson-Aurélien I didn’t try compiling your code, but if I paste it to VS Code, it shows this.5d9a5535-fe66-4cd3-b4f8-2466e0fc61ce-image.png

      Pragmatic Programmer

      M 1 Reply Last reply Reply Quote 1
      • M Online
        mabe2k Bronze Member @Raimo Järvi
        last edited by

        @Raimo-Järvi the message says, that the „-„ character is the wrong one. Maybe it helps, if you remove them and type them again.

        1 Reply Last reply Reply Quote 0
        • sebchastangS Online
          sebchastang Silver Members @Dubosson Aurélien
          last edited by

          @Dubosson-Aurélien
          As @Raimo-Järvi and @mabe2k noticed, you should remove the “-” character and replace 184-70 by 114 directly.

          To make code maintenance more easy, you could declare a variable to set your resting HR and use it in your condition:

          REST_HR=70;
          if(SUUNTO_HR_AVG[5]<(70/100*(184-REST_HR)+70) || SUUNTO_HR_AVG[5]>(75/100*(184-REST_HR)+70))
          {
          Suunto.alarmBeep();
          }
          RESULT=SUUNTO_HR_AVG[5];
          

          Suunto Vertical
          Suunto Traverse

          1 Reply Last reply Reply Quote 1
          • H halajos referenced this topic on
          • First post
            Last post

          Suunto Terms | Privacy Policy