Program Name: TW Date: 5/97 Subject: sailing Size: 73 bytes REQUIREMENTS MODULES: SUBS: HARDWARE:Comments
STACK DATA T HD boat heading Z BS boat speed Y AR apparant wind relative bearing X AS apparant wind speedThe apparant wind bearing is positive for starbord and negative for port. If the apparant wind is at 40 deg to stbd it is 40, if it is 40 degrees to port it is -40.
20 Heading ENTER 5.5 Boat Speed ENTER 45 Apparant Wind Angle ENTER 13 Apparant Wind Speed XEQ TWThe display will read |T=68R,88M,10 |
120 Heading ENTER 6 Boat Speed ENTER 145 Apparant Wind Angle CHS Change to negative for wind to port ENTER 7 Apparant Wind Speed XEQ TWThe display will read |T=161R,41M,12|
DATA STRUCTURE REG DATA 11 AR apparant wind relative bearing 12 AS apparant wind speed 13 HD boat heading 14 BS boat speed PROGRAM LISTING LBL TW STO 12 RDN STO 11 RDN STO 14 RDN STO 13 90 RCL 11 - RCL 12 P-R STO 11 RDN STO 12 90 RCL 14 P-R ST- 11 RDN ST- 12 90 RCL 12 RCL 11 R-P RDN - FIX 0 "T=" ARCL X "|R," RCL 13 + 360 MOD R^ ARCL Y "|M," ARCL X AVIEW ENDLBL TW STO 12 RDN STO 11 RDN STO 14 RDN STO 13 90 RCL 11 - RCL 12 P-R STO 11 RDN STO 12 90 RCL 14 P-R ST- 11 RDN ST- 12 90 RCL 12 RCL 11 R-P RDN - FIX 0 "T=" ARCL X "|R," RCL 13 + 360 MOD R^ ARCL Y "|M," ARCL X AVIEW END