I proudly present a new and ready to go plugin for OpenCPN
: calculator_pi, a symbolic calculator. Need to calculate hull speed
or visibility range of a lighthouse? The Calculator_pi is there to help.
Have a look at the plugin here: https://github.com/SaltyPaws/calculator_pi.git
The plugin submission form is currently not working for me, so please let me know how I can officially submit the plugin.
Please let me know your favorite nautical equations.
Examples of expression that work in the calculator are: (comments are in brackets, some results depend on other example calculations):
LWL=48 (water line lenght in feet)
vhull=1.34*LWL^(1/2) (hull speed in knots)
ftm=0.3048 (feet to meters)
km_to_nm=0.539957 (Kilometers to nautical Mile)
ftm*LWL (waterline length in meters)
Distance to horizon
R=6378.1*1000 (Radius of the earth in m)
H=2.5 (Height of the eye above sea-level in m)
d = R * acos(R/(R + h)) (Distance to horizon in m)
ans*km_to_nm (Distance to horizon in nm)
Distance to lighthouse
H1=200 (height of lighthouse in m)
d1 = R*acos(R/(R + H1)) (Distance to horizon in m)
distance=d1+d (visibility range of lighthouse in m)