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

    Ambit2: self-written suuntu-app does not work

    Scheduled Pinned Locked Moved Ambit
    3 Posts 2 Posters 221 Views 2 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.
    • S Offline
      suolaf
      last edited by

      Hello dear Co-athletes,

      i have written a small program for my Ambit2, which is also error-free after “Verify” on “http://www.movescount.com/de/app”.

      Under the item “Verify” you can find the item “Test”.
      There you can set the Suuntu variables with the sliders and a result should appear in the clock.
      But this does not work.
      There is only the text “Whoops! Please check the formula.”
      My little program is:

      /*BSA nach Mosteller in m² */
      /*SUUNTO_USER_AGE in Jahren */
      /*SUUNTO_USER_WEIGHT in kg */
      /*SUUNTO_USER_HEIGHT in cm */
      /*RESULT VO2 in ml/min /
      BSA = Suunto.sqrt(SUUNTO_USER_WEIGHT
      SUUNTO_USER_HEIGHT/3600);

      if (SUUNTO_USER_GENDER == 1) {
      VO2 = 138.1 - 11.49 * Suunto.log(SUUNTO_USER_AGE) + 0.378 * SUUNTO_HR * BSA; /* Männer /
      }
      else {
      VO2 = 138.1 - 17.04 * Suunto.log(SUUNTO_USER_AGE) + 0.378 * SUUNTO_HR * BSA; /
      Frauen */
      }
      prefix = “VO2”;
      RESULT = VO2;

      What’s the fault?

      Not even a little formula like:
      TEST = SUUNTO_USER_HEIGHT/36;
      RESULT = TEST;
      works 😧 Same error!

      1 Reply Last reply Reply Quote 0
      • H Online
        halajos Bronze Member
        last edited by

        You need to define and initialize your variables, like this:
        Capture.PNG

        1 Reply Last reply Reply Quote 1
        • S Offline
          suolaf
          last edited by

          Man, that’s it!
          😊
          Thank you!

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

          Suunto Terms | Privacy Policy