No announcement yet.

final static double

  • Filter
  • Time
  • Show
Clear All
new posts

  • final static double

    Can someone explain what final static double does or better yet teach me to fish and let me know where I can look it up myself.

  • #2
    Final: Its value cannot be changed at runtime (is read-only).
    Static: It's not "per instance", but rather is one value shared for all users of a class. It's hard to explain without reading the tutorials (linked later) first.
    double: Short for double-precision floating point. Basically, it stores a decimal.

    The tutorials I was talking about are and the entries under "Learning the Java language" at
    FTC6460 mentor (software+computer vision+electronics), FPGA enthusiast. In favor of allowing custom electronics on FTC bots.
    Co-founder of ##ftc live chat for FTC programming--currently you may need to join and wait some time for help--volunteer basis only.


    • #3
      Thanks, will check them out. I have been watching java tutorials all day and knew that double was a variable but didn't know the other commands. Is there any FTC reference guide, or software manual that explains all the classes, how the main loop runs, and basic commands?


      • #4
        Check out the .pdfs in the ftc_app public repository:

        in this directory:

        There is also the javadoc in the ftc_app directory; however, in my opinion, the javadoc is a bit terse, and could use much more context, examples, and explanation.

        Martin Haeberli
        Mentor, FTC 7593, TigerBots


        • #5
          These videos might help:

          Programmer for Team 4997 Masquerade -- 2012 World Champions, 2014 - 2016 Division Finalists
          Founding Member of Team 6433 Neutrinos -- 2015 World Champions

          Check out my intro video to the new tech platform
          Check out my team's Robot Reveal for Res-Q