;  patch22ET.txt   .. combines train22eT, ElevLimits  and sat22eT. (c)22-oct-2001
;  rseymour@wolfenet.com
; for NEW UPDATER and build.rom of v22ET  only!!   rev 6t
;  with two optional other patches: 
; new: optional CordWrap override: allow all models to turn on/off
; old: optional automatic sat-track instead of beep
;  removes: OwnerInfo/Street/City/Zip/State
;
; version identifier changed to 22tt
;
;  Please  READ the companion README22ET.txt  for better instructions.
;
;
; old: set upper GoTo Elevation Travel Limit!!
; previous: View/Edit Training
; previous: set Satellite AOS minimum elevation
; previous: display Satellite AOS  time to-the-second
;
;    deleted: view/edit Park-retained training
;
;  Display/Edit Training  Patch:
; this adds two menu items under Setup > Tele > Train
;  Edit > Az Train
;    and
;  Edit > Alt Train
;  allow direct manipulation of the results of training.
;    a power cycle (without using Park) is needed for 
;     the  new values to be fully implemented.
;  
;  Set upper GoTo Elevation Travel Limit
;  moved to a separate Setup>Tele >Elev Limit display.
;   (was Edit > Dec Train   (scroll up from Az Train))
;   Sets an upper travel limit for GoTo operations.
;  This will protect you from crunching your rear-port mounted
;    hardware.
;  The units displayed are ARCMINUTES, so 5400 = 90 degrees.
;  4800 = 80 deg, 4200 = 70deg, 3600 = 60 deg, 3000 = 50 deg,
;   2400 = 40 deg,  1800 = 30 deg,  1200 = 20 deg, 600 =10 deg.
;
;  Once set, the telescope will not rise above that elevation/Dec
;   during GoTo operations.
; You reset the limit to its default 90 degrees by either entering 5400
;  or by selecting your telescope's model again.
;
   
;  Satellite Lowest Elevation (Horizon) Patch:

; This Patch also adds the ability to set the lowest AOS altitude from the keypad
;  satellite pass-prediction will use.
;  You now have a new menu item:
;    Satellite > AOS Alt.
;  Due to internal shortcuts, the value you enter
;   may not be -exactly- what you see a second time, 
;  but it will be close.  The value displayed is the
;  one being used.  No error checking!
; 
; Satellite AOS time displayed to-the-second (instead of truncated minute)
; Satellite Tracking starts automatically (instead of beeping) at zero countdown.
;  Cord Wrap changed from "forced ON if ETX90/105/125" to on/off choice.
;
;  For installation instructions, see:
;   http://www.weasner.com/etx/autostar/as_patches3a.html
;  the last line of this file says "end of patch"
;  Dick Seymour   22-oct-2001

; START of build.rom v22eT patch
; all lines are: R(eplace) Address  Old  New   comments
; checksum correction, identifier
R  0004  50  ba   chksum
R  0005  40  b5   chksum
R  0006  B0  AF   chksum
 
R  000A  45  74   E->t (+2F twice)
R  0142FE  45  74

;  FEATURE>>> (optional) Cord Wrap choices.
; If you remove the semicolons from the next three lines, you
;   will allow keypad control of the CordWrap on/off for -all-
;    telescope models.  Not recommended unless you need it.
; IF you do NOT edit these 3 lines, you will NOT implement this patch.
;R  20106  27  20     (3f106)
;R  201ea  26  21     (3f1ea)
;R  2010a  17  23    chksum

; FEATURE>>> (optional)  automatic Satellite tracking:
; Satellite tracking start when the timer reaches zero
; (masking the  beep), 
; if you do NOT want this feature, either delete the next 3 lines,
;   or put a semicolon (;) before the R for all three lines.

R       042bf0  bd   20   (-9d)
R       042bf1  1e   2a   (+0c)=-91
R       042bf2  1e   af   (chksum)

;  FEATURE>>  AOS time to-the-second
; this provides a to-the-second AOS time display

R       0425d6  6e  59  (-x15 twice)(895d6)
R       0425ea  6e  59  (895ea)

;  training:  code starts at 8-fdd0  (b:48dd0)
; menu table:

R       0126E8  16      18  AzUp->AltEdit (was Alt Trn)22eT
R       0126E9  F2      12
R       0126F6  16      18  AltDwn->AzEdit (was Az Trn)22eT
R       0126F7  E2      02
        
R       0127FC  18      00  prevent [enter] activity 22eT
R       0127FD  02      00    at Own/Addr

R       012800  Dd      b2   owner address->street code (was NxtMenu)
R       012801  68      d3
R       012803  af      a4  msg:Address->Edit  
R       012805  b0      9a  msg:Street->Az/RA Train  
R       012808  18      16  Uplink from addr/state  to  AltTrain
R       012809  22      F2  ditto
R       01280A  17      16  ModeLink from Own/add to Tele/Train
R       01280B  F2      C2   ditto
R       01280f  04      08  page of Az code
R       012810  b2      fd   address of Az code (was street)
R       012811  d3      d0   ditto (old went to 800/801)

R       012813  af      a4   msg: address->Edit 
R       012815  b1      9b   msg: City->Alt/Dec Train 
R       012816  18      16   22eT DwnLnk to AzTrn
R       012817  32      e2   Dwnlink:1832 to 16e2  (16e2)
R       01281A  17      16   ModeLink from Own/add to Tele/Train
R       01281B  F2      C2    ditto
R       01281F  04      08   page of code
R       012820  b3      fe   Addrs of Alt code (was City)
R       012821  60      03    ditto

; elev menu
; splice into util  LndMrk/Sleep
R       012576  15      18  lndmrk dwn sleep now Elev
R       012577  82      22
R       012588  15      18  sleep up lndmrk now elev
R       012589  72      22

R       012822  02      02
R       012823  af      71  msg: addrs -> Util
R       012824  02      01  msg: zip -> Elev Limit
R       012825  b3      ea  msg
R       012826  18      15
R       012827  02      82  DwnLnk to Util/Sleep 1582
R       012828  18      15
R       012829  32      72  UpLink to Util/LndSur 1572
R       01282A  17      14  ModeLink from Own/add to Util 1452
R       01282B  F2      52    ditto
R       01282F  04      08
R       012830  b3      fe   addr(was zip)
R       012831  ee      69     ditto 

; new msg 01ea: "At Breakpoint: " to "Max Elev (mins)"
; 41 74 20 42 72 65 61 6b 70 6f 69 6e 74 3a 20
; 4D 61 78 20 45 6c 65 76 20 28 6d 69 6e 73 29

R   95cc0   41  4d
R   95cc1   74  61
R   95cc2   20  78
R   95cc3   42  20
R   95cc4   72  45
R   95cc5   65  6c
R   95cc6   61  65
R   95cc7   6b  76
R   95cc8   70  20
R   95cc9   6f  28
R   95cca   69  6d
R   95ccb   6e  69
R   95ccc   74  6e
R   95ccd   3a  73
R   95cce   20  29

;  menu table
R       012258  12      18  UpLnk: sat AOS added between delete and edit
R       012259  62      32
R       012266  12      18  DwnLnk
R       012267  52      32

R       012833  af      4a   msg: Satellite
R       012834  02      00   msg2:
R       012835  b2      be   msg2a: AOS Alt:_  (22eT)
R       012836  18      12   DwnLnk->SatEdit
R       012837  22      52    ditto
R       012838  18      12   UpLnk to SatDel
R       012839  12      62    ditto
R       01283A  17      11  ModeLink from ??? to Obj/Sat
R       01283B  f2      b2
R       01283F  04      08   code page
R       012840  b3      fe   code address
R       012841  a7      9D   
;   end sat aos limit menu

; training code:
;  Az
R       048dD0  FF      3C
R       048DD1  FF      BD
R       048DD2  FF      25
R       048DD3  FF      82   clrscrn
R       048DD4  FF      FC
R       048DD5  FF      B6
R       048DD6  FF      0B   az
R       048DD7  FF      30
R       048DD8  FF      ED
R       048DD9  FF      00
R       048DDA  FF      CC
R       048DDB  FF      02
R       048DDC  FF      9A   az train
R       048DDD  FF      BD
R       048DDE  FF      1E
R       048DDF  FF      1E
R       048DE0  FF      09
R       048DE1  FF      AC
R       048DE2  FF      A0   d->msg
R       048DE3  FF      BD
R       048DE4  FF      25
R       048DE5  FF      B2   msg->scrn
R       048DE6  FF      C6
R       048DE7  FF      01
R       048DE8  FF      37
R       048DE9  FF      5C
R       048DEA  FF      BD
R       048DEB  FF      25
R       048DEC  FF      36   cursor
R       048DED  FF      31
R       048DEE  FF      30
R       048DEF  FF      8F
R       048DF0  FF      BD
R       048DF1  FF      1E
R       048DF2  FF      1E
R       048DF3  FF      05
R       048DF4  FF      9A
R       048DF5  FF      4C   IntegerIn
R       048DF6  FF      CE
R       048DF7  FF      B6
R       048DF8  FF      0B
R       048DF9  FF      3C
R       048DFA  FF      30
R       048DFB  FF      EC
R       048DFC  FF      02
R       048DFD  FF      BD
R       048DFE  FF      22
R       048DFF  FF      8D  burn word
R       048E00  FF      38
R       048E01  FF      38
R       048E02  FF      39

; Alt
R       048E03  FF      3C
R       048E04  FF      BD
R       048E05  FF      25
R       048E06  FF      82   clrscrn
R       048E07  FF      FC
R       048E08  FF      B6
R       048E09  FF      09   alt
R       048E0A  FF      30
R       048E0B  FF      ED
R       048E0C  FF      00
R       048E0D  FF      CC
R       048E0E  FF      02
R       048E0F  FF      9B   Alt Tr
R       048E10  FF      BD
R       048E11  FF      1E
R       048E12  FF      1E
R       048E13  FF      09
R       048E14  FF      AC
R       048E15  FF      A0   msg
R       048E16  FF      BD
R       048E17  FF      25
R       048E18  FF      B2   scr
R       048E19  FF      C6
R       048E1A  FF      01
R       048E1B  FF      37
R       048E1C  FF      5C
R       048E1D  FF      BD
R       048E1E  FF      25
R       048E1F  FF      36  curs
R       048E20  FF      31
R       048E21  FF      30
R       048E22  FF      8F
R       048E23  FF      BD
R       048E24  FF      1E
R       048E25  FF      1E
R       048E26  FF      05
R       048E27  FF      9A
R       048E28  FF      4C   IntIn
R       048E29  FF      CE
R       048E2A  FF      B6
R       048E2B  FF      09
R       048E2C  FF      3C
R       048E2D  FF      30
R       048E2E  FF      EC
R       048E2F  FF      02
R       048E30  FF      BD
R       048E31  FF      22
R       048E32  FF      8D   burn
R       048E33  FF      38
R       048E34  FF      38
R       048E35  FF      39

; Elev Lim
R       048E69  FF      3C
R       048E6A  FF      BD
R       048E6B  FF      25
R       048E6C  FF      82   clr scrn
R       048E6D  FF      FC
R       048E6E  FF      B6
R       048E6F  FF      13   elev limit
R       048E70  FF      30
R       048E71  FF      ED
R       048E72  FF      00
R       048E73  FF      CC
R       048E74  FF      01
R       048E75  FF      EA   custom msg
R       048E76  FF      BD
R       048E77  FF      1E
R       048E78  FF      1E
R       048E79  FF      09
R       048E7A  FF      AC
R       048E7B  FF      A0   msg
R       048E7C  FF      BD
R       048E7D  FF      25
R       048E7E  FF      B2   scrn
R       048E7F  FF      C6
R       048E80  FF      01
R       048E81  FF      37
R       048E82  FF      5C
R       048E83  FF      BD
R       048E84  FF      25
R       048E85  FF      36   curs
R       048E86  FF      31
R       048E87  FF      30
R       048E88  FF      8F
R       048E89  FF      BD
R       048E8A  FF      1E
R       048E8B  FF      1E
R       048E8C  FF      05
R       048E8D  FF      9A
R       048E8E  FF      4C   IntIn
R       048E8F  FF      CE
R       048E90  FF      B6
R       048E91  FF      13
R       048E92  FF      3C
R       048E93  FF      30
R       048E94  FF      EC
R       048E95  FF      02
R       048E96  FF      BD
R       048E97  FF      22
R       048E98  FF      8D   burn
R       048E99  FF      38
R       048E9A  FF      38
R       048E9B  FF      39

;  edit satellite AOS altitude:
; raise-AOS patch, modified for user-change

R       015F88  5f      fc   (22et)
R       015F89  4f      b6
R       015F8A  ed      4a   value
R       015F8B  02      ed
R       015F8C  86      00
R       015F8D  40      4f
R       015F8E  ed      ed
R       015F8F  00      02

;  edit satellite AOS altitude:
; code
R       048E9D  FF      3C
R       048E9E  FF      3C
R       048E9F  FF      3C
R       048EA0  FF      3C
R       048EA1  FF      BD
R       048EA2  FF      25
R       048EA3  FF      82   clrscrn
R       048EA4  FF      CC
R       048EA5  FF      00
R       048EA6  FF      BE   AOSmsg
R       048EA7  FF      BD
R       048EA8  FF      1E
R       048EA9  FF      1E
R       048EAA  FF      09
R       048EAB  FF      AC
R       048EAC  FF      A0   msg
R       048EAD  FF      BD
R       048EAE  FF      25
R       048EAF  FF      B2    scrn
R       048EB0  FF      C6
R       048EB1  FF      01
R       048EB2  FF      30
R       048EB3  FF      E7
R       048EB4  FF      00
R       048EB5  FF      5C
R       048EB6  FF      BD
R       048EB7  FF      25
R       048EB8  FF      36  curs
R       048EB9  FF      FC
R       048EBA  FF      B6
R       048EBB  FF      4A   loc
R       048EBC  FF      30
R       048EBD  FF      ED
R       048EBE  FF      04
R       048EBF  FF      CC
R       048EC0  FF      00
R       048EC1  FF      00
R       048EC2  FF      ED
R       048EC3  FF      06
R       048EC4  FF      8F
R       048EC5  FF      C3
R       048EC6  FF      00
R       048EC7  FF      04
R       048EC8  FF      30
R       048EC9  FF      ED
R       048ECA  FF      01
R       048ECB  FF      C6
R       048ECC  FF      02
R       048ECD  FF      E7
R       048ECE  FF      00
R       048ECF  FF      C6
R       048ED0  FF      04
R       048ED1  FF      BD
R       048ED2  FF      1E
R       048ED3  FF      1E
R       048ED4  FF      05
R       048ED5  FF      af
R       048ED6  FF      58  FloatIn
R       048ED7  FF      30
R       048ED8  FF      EC
R       048ED9  FF      04
R       048EDA  FF      CE
R       048EDB  FF      B6
R       048EDC  FF      4A
R       048EDD  FF      3C
R       048EDE  FF      30
R       048EDF  FF      BD
R       048EE0  FF      22
R       048EE1  FF      8D   burn
R       048EE2  FF      38
R       048EE3  FF      38
R       048EE4  FF      38
R       048EE5  FF      38
R       048EE6  FF      38
R       048EE7  FF      39
; end of build.rom v22eT patch