# File: ip_setup.src
#
# RESTRICTION:
#	This should only be run when you have high rate.  It sets DEP R3
#	even though this should only be done by the telemetry rate transition
#	tstol procedures.
# 
# HISTORY:
#	Created 12-Dec-95 by D.Mathur
#	12-Dec-95 (MDM) - Added some TCBLOCK commands to initialize stuff
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
#=======================================================
source "/mdisw/cfl/sim/src/ip_setup.src"
descr "UNKNOWN"
#
#
perf  images_v01
perf  dmpmem_v01
perf  lrbin2x2_v03
perf  lrbin4x4_v03
perf  lrbin8x8_v03

tcblock mbiplbic  5 5        ## Set 256x256 extract program as default
tcblock mbsqreg 3 1          ## Enable HR downlink (R3 is VC flag)
tcblock mbipldin 0x140 61 0  ## Downlink RAW format
tcblock mbipldin 0x140 33 0  ## Downlink via Prime TLM channel

#   Initialize stack items  (ipfc1709 & above)
tcb mbipldin 0x11c

# set initial camera header
display "Setting Initial camera header"
tcblock mbcmhdr1 0x4040 0x4040 0 1 0


# Set 1st IP vector entry to point to VLCTY procedure
tcblock  mbipldin 0x154
wait time 5
 
tcblock mbipcmd 0x91 0 0x1f00
wait time 3

tcblock mbipldin 0x136

