my knock off spudgun calculator

A place for general potato gun questions and discussions.
User avatar
saladtossser
Sergeant 3
Sergeant 3
Posts: 1234
Joined: Sat Mar 26, 2005 10:40 am
Location: Toronto
Contact:

Mon Jan 09, 2006 8:57 pm

never noticed this new section b4
i reversed the function of fuel tool
in fuel tool, u input propane pressure and you get the length of pipe you need
in my version, u input the meter pipes dia and length, and the calculator will tell you what pressure you need a regulator to be set at

where can i upload a xls file?

i am trying to make a javascript version of this, but failed 3 times...
http://littlecrazyprojects.tripod.com/guncalculator.htm <---dont work
http://littlecrazyprojects.tripod.com/g ... lator2.htm <---dont work
and
another:

<html>
<form name="cal">
<input type="text" name="chamber_dia" size="10" value="0" onchange="javascript(document.cal.chamber_dia.value / 2 * document.cal.chamber_dia.value / 2 * 3.14159 * document.cal.chamber_length.value = document.cal.chamber_volume.value)">
<br>
<input type="text" name="chamber_length" size="10" value="0" onchange="javascript(document.cal.chamber_dia.value / 2 * document.cal.chamber_dia.value / 2 * 3.14159 * document.cal.chamber_length.value = document.cal.chamber_volume.value)">
<br>
<input type="text" name="chamber_volume" size="10" readonly>
<br>
<input type="text" name="barrel_dia" size="10" value="0" onchange="javascript(document.cal.barrel_dia.value / 2 * document.cal.barrel_dia.value / 2 * 3.14159 * document.cal.barrel_length.value = document.cal.barrel_volume.value)"> <br>
<input type="text" name="barrel_length" size="10" value="0" onchange="javascript(document.cal.barrel_dia.value / 2 * document.cal.barrel_dia.value / 2 * 3.14159 * document.cal.barrel_length.value = document.cal.barrel_volume.value)">
<br>
<input type="text" name="barrel_volume" size="10" readonly>
<br>
<input type="button" name="cb_ratio_cal" value="Calculate Your Chamber to Barrel Ratio" onclick="javascript (document.cal.chamber_volume.value / document.cal.barrel_volume.value = document.cal.cb_ratio.value)">
<br>
<input type="text" name="cb_ratio" size="10" readonly>
<br>
<input type="text" name="meter_dia" size="10" value="0" onchange="javascript(document.cal.meter_dia.value / 2 * document.cal.meter_dia.value / 2 * 3.14159 * document.cal.meter_length.value = document.cal.meter_volume.value)"> <br>
<input type="text" name="meter_length" size="10" value="0" onchange="javascript(document.cal.meter_dia.value / 2 * document.cal.meter_dia.value / 2 * 3.14159 * document.cal.meter_length.value = document.cal.meter_volume.value)">
<br>
<input type="text" name="meter_volume" size="10" readonly>
<br>
<input type="text" name="best_mix" value="4.03%" readonly>
<br>
<input type="button" name="best_pressure_cal" value="Calculate Your Recommended Propane Volume in Chamber" onclick="javascript(document.cal.chamber_volume.value * 0.0403 = document.cal.best_propane_volume.value)">
<br>
<input type="text" size="10" name="best_propane_volume" readonly>
<br>
<input type="button" name="best_pressure_cal" value="Calculate Your Recommended Propane Volume in Chamber" onclick="javascript(document.cal.best_propane_volume.value * 14.6 = document.cal.best_propane_pressure.value)">
<br>
<input type="text" size="10" name="best_propane_pressure" readonly>
</form> </html>

if any1 can help me fix that up, that will be great, i just made the script in onchange="" and onclick="" up.

edit, just uploaded a excel file:
http://littlecrazyprojects.tripod.com/guncal.htm
i want the form to do exactly as the spreadsheet
Last edited by saladtossser on Thu Jan 19, 2006 7:47 pm, edited 2 times in total.
"whoa... I thought pimpmann was black..."-pyromanic13
User avatar
CS
Moderator
Moderator
Posts: 1837
Joined: Fri Feb 18, 2005 5:32 pm
Location: Southern Utah

Donating Members

Mon Jan 09, 2006 11:39 pm

"my knock off spudgun calculator"
LMAO! If I ever create a calc of any kind I will name it "My Throwback Spudgun Cauculator". Sorry that I cant help you but once you cross over into javascript thats were its super confusing! The only hard thing ive learned is a little of CSS. Sorry for being critical, but have you ever heard of a "capital letter"? JK
User avatar
saladtossser
Sergeant 3
Sergeant 3
Posts: 1234
Joined: Sat Mar 26, 2005 10:40 am
Location: Toronto
Contact:

Tue Jan 10, 2006 4:30 pm

http://littlecrazyprojects.tripod.com/guncal.htm
it worked
big thanks to the ppl at ExcelEverywhere, also pcguy and boogieman for indirectly suggesting me to use exceleverywhere.

edit: awesome, i got 3 hits that came from this particular post
"whoa... I thought pimpmann was black..."-pyromanic13
User avatar
nicholai
Specialist 3
Specialist 3
Posts: 349
Joined: Wed Jan 04, 2006 4:18 pm
Location: Maine
Contact:

Sat Feb 25, 2006 2:48 pm

hey i got the same idea going over here except im gonna code it in visual basic and i didnt rip off anyones code, well i did rip off the numbers used for the calculations, however i adjusted the inside diameter sizes of certain pipe fittings like brass and obviously pvc cause i got different ones from the calipers. its kinda a little side project of mine and its real dirty looking so far but i will post it and revise constantly when i find the appropriate "artwork" to display such a tool
Image
Post Reply