After recent discussions, the flatfielding will be more like the following (see a future release of this document).
tc_mode 4 tc_det_enbl_frame_tag 1 tc_det_event_threshold 30 # ref frame exp tc_set_frame_time 25*1024 tc_prog_mem_wind "/home/xmmom/sim_data/e40016/mmw.cfg" tc_prog_sci_wind "/home/xmmom/sim_data/e40016/scw.cfg" tc_set_trk 0 tc_set_bpe 1 tc_report_tracking 1 tc_enbl_verbose 0,1 tc_enbl_verbose 3,1 tc_set_exposure_time 40 tc_set_exp_no 0xe00016 tc_send_command IC_INIT_EXP taskDelay 5*60 tc_det_flood_led_current 3 # start sending events from mic tc_det_start_int # choose_guide_stars tc_send_command IC_CHOOSE_GS # time allocated for guide star selection taskDelay 60*(25) # time allocated for window setup taskDelay 60*(20) # Jon delay: extra time for simulator taskDelay 40*60 tc_det_acq_mode 3 tc_send_command IC_TRACK_GS # tm_wait_for_alert DA_BEGOF_EXP # data arrives ... taskDelay((25*40+60)*60) #tm_wait_for_alert DA_ENDOF_EXP ## tm_wait_for_alert DA_SWITCH_FRAME ## tm_wait_for_alert DA_EOT_FLUSH_CMPRS #tm_wait_for_alert DA_COMPLETE_EXP tc_det_flood_led_current 0 # wait for rest of data taskDelay(120*60) tc_set_trk 1 tc_set_bpe 0