Results 1 to 9 of 9

Energy Calculator for Iphone

This is a discussion on Energy Calculator for Iphone within the Links forums, part of the Airguns category; http://itunes.apple.com/au/app/air-g...403661770?mt=8...

  1. #1
    Administrator
    Join Date
    Aug 2005
    Location
    West Yorkshire
    Posts
    8,258
    Post Thanks / Like

    Energy Calculator for Iphone


  2. #2
    Registered User
    Join Date
    May 2011
    Location
    Melbourne, Australia
    Posts
    1
    Post Thanks / Like

    Air Gun Calculator

    Hi,

    I'm the developer of this app. If you have suggestions for improvements let me know as we are working on version 1.1 with a fix to the Joules calculation and an increase in maximum pellet weight.

    Cheers,

    Wayne

  3. #3
    mmmm.......pellets....... Taff777's Avatar
    Join Date
    Sep 2010
    Location
    Newcastle upon Toon
    Posts
    375
    Post Thanks / Like
    excellent app - well worth it! it's a bit fiddly to slide the bars (eg) to get the exact pellet weight but its easy to tap the numbers and enter the digits manually. what is good is that you can set the weight for a particular pellet and slide the velocity bar along to see the max velocity possible to keep within the law. i know there are calculators online etc but this is good because you dont need to access tinternet to use it!

  4. #4
    mmmm.......pellets....... Taff777's Avatar
    Join Date
    Sep 2010
    Location
    Newcastle upon Toon
    Posts
    375
    Post Thanks / Like
    PS - good on ya, Wayne!!

    any chance to could write an app that tells me what sort of mood my missus will be in after work?? (that would be worth a fortune!)

    cheers
    Taff

  5. #5
    Warped by the rain
    Join Date
    Jan 2011
    Location
    Deepest Darkest Wales
    Posts
    552
    Post Thanks / Like
    I've got a real crude energy calculator which works on Android phones.

    Simple HTML/javascript page which works in most browsers - takes metric or imperial units and outputs Joules and Foot Pounds.

    If anyone wants a copy I can mail it or post it.
    Last edited by DougR; 19-05-2011 at 20:51 PM.

  6. #6
    Registered 40+ posts trevnraj's Avatar
    Join Date
    Dec 2010
    Location
    Sittingbourne
    Posts
    339
    Post Thanks / Like
    Very useful, but is a bit delicate for my big fingers, but good I like it
    ThanksTrev

  7. #7
    The Great
    Join Date
    May 2011
    Location
    London
    Posts
    70
    Post Thanks / Like
    Quote Originally Posted by wcosshall View Post
    Hi,

    I'm the developer of this app. If you have suggestions for improvements let me know as we are working on version 1.1 with a fix to the Joules calculation and an increase in maximum pellet weight.

    Cheers,

    Wayne
    Is this an iphone party only or is android invited? I'll definitely be interested if it's also available for android

  8. #8
    Warped by the rain
    Join Date
    Jan 2011
    Location
    Deepest Darkest Wales
    Posts
    552
    Post Thanks / Like
    Quote Originally Posted by Greek View Post
    Is this an iphone party only or is android invited? I'll definitely be interested if it's also available for android
    Android Howto:

    Take the following code and create a file called GunCalc.html on your computer (Cut-nPaste into notepad will do nicely)
    Code:
    <html>
    <head></head>
    <script language=javascript>
    function isNumber(n) 
      {//alert ("isNumber");
      return !isNaN(parseFloat(n)) && isFinite(n);
      }
    
    function EnCalc(frm)
     {
      fpe = (frm.ipMass.value * frm.ipVel.value * frm.ipVel.value)/450240
      frm.opEng.value=""+fpe;
      joules = fpe * 1.35581795 ;
      frm.opMet.value = "" + joules;
      return;
     }
    function GramsToGrains(frm)
     { if (isNumber(frm.ipGrams.value) )
        {frm.ipMass.value = frm.ipGrams.value * 15.4323584;}
       else 
        {alert("Need a numeric input \nfor Grams")
         frm.ipGrams.focus();
        };
     }
    function MetersToFeet(frm)
      { if (isNumber(frm.ipMS.value) )
           {frm.ipVel.value = frm.ipMS.value * 3.2808399;
           }
        else 
           {alert("Need a numeric input \nfor M/s")
            frm.ipMS.focus();
           };
      }
    function initial (frm)
      { //alert ("initialising");
      frm.ipMS.value="";
      frm.ipGrams.value="";
      }
    </script>
    <body>
    <h2>Gun Calculations</h2>
    <Form name="calcForm">
    <table border=1>
    <tr>
      <TH>Mass</th>
      <TH>Speed<</th>
      <TH>Energy</th>
    </tr>
    <tr>
      <TD align="center">Grams     <input Name="ipGrams" type=text size=6 Value="">
         <br>       <input Name="btMconv" type="Button" value="To Grains" onClick="GramsToGrains(this.form)">
         <br>Grains <input Name="ipMass" type=text size=6 Value=8>
         </td>
      <TD align="center">M/S       <input Name="ipMS" type=text size=6 Value="">
         <br>       <input Name="btVconv" type="Button" value="To FPS" onClick="MetersToFeet(this.form)">
         <br>F.p.S. <input Name="ipVel"  type=text size=4 Value=800> 
      </td>
      <TD align="center">Joules<Input Name="opMet"  type=text Size=5 value=""> 
          <br><input type="button" Value="Calculate" onClick="EnCalc(this.form)"> 
          <BR>F.P.E.<Input Name="opEng"  type=text Size=5 value=""> 
       </td>
    </tr>
    </table>
    </Form>
    <tt><pre>
    1 grain = 0.06479891 grams
    
    1 gram = 15.4323584 grains
    
    Energy in FP is mass_grains(V_FPS*V_FPS)/450240
    </pre></tt>
    </body>
    <script language=javascript>initial(calcForm)</script>
    </html>
    You can test the html file by dragging it onto your browser on the computer - should be pretty obvious ho you use it.

    Connect your Android phone to your computer.

    Create a Directory on the SD card called MyHtml

    Copy GunCalc.html into this new directory

    Disconnect the Phone from the 'puter.

    In the phone's browser "file://sdcard/MyHtml/GunCalc.html"

  9. #9
    Registered User
    Join Date
    Nov 2011
    Location
    Bristol
    Posts
    34
    Post Thanks / Like
    Found it good. I have had difficulties with it freezing - although, the aforementioned, is probably down to my incredibly old iPhone.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •