Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99513742
simplevmg
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 25, 03:08
Size
675 B
Mime Type
text/x-python
Expires
Mon, Jan 27, 03:08 (2 d)
Engine
blob
Format
Raw Data
Handle
23815409
Attached To
R890 mux0183
simplevmg
View Options
#!/usr/bin/env python3
import sys, datetime
sys.path.append ('../lib')
from router_v1 import *
boat = Boat(43, 6)
boat.polar = Polar('../polar/so36i.pol')
boat.wind = Wind(90.0, 15.0)
boat.wp = WayPoint(43.1, 6.1)
boat.polar.boatSpeed2(55, 7)
exit(0)
vmg, twa, hdg, speed = boat.bestVmg()
print(' WP Bearing:{0:.2f} Dist:{1:.2f} Nm'.format(boat.azimut, boat.dist))
print(' TWS:{0:.2f}'.format(boat.wind.speed))
print(' TWA:{0:.2f}'.format(twa))
print(' Heading:{0:.2f}'.format(hdg))
print(' boat speed:{0:.2f} Kts'.format(speed))
print(' VMG:{0:.2f} Kts'.format(vmg))
if vmg != 0 :
print(' ETA:{0:.1f} sec = {1:.2f} h'.format(3600*boat.dist/vmg, boat.dist/vmg))
Event Timeline
Log In to Comment