1 // Copyright (c) <2012> <Leif Asbrink> 2 // 3 // Permission is hereby granted, free of charge, to any person 4 // obtaining a copy of this software and associated documentation 5 // files (the "Software"), to deal in the Software without restriction, 6 // including without limitation the rights to use, copy, modify, 7 // merge, publish, distribute, sublicense, and/or sell copies of 8 // the Software, and to permit persons to whom the Software is 9 // furnished to do so, subject to the following conditions: 10 // 11 // The above copyright notice and this permission notice shall be 12 // included in all copies or substantial portions of the Software. 13 // 14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 16 // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 19 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE 21 // OR OTHER DEALINGS IN THE SOFTWARE. 22 23 24 #include "globdef.h" 25 #include "blnkdef.h" 26 27 unsigned char chan_color[2]={2,4}; 28 29 MEMREF_T *blanker_handle; 30 float *blanker_refpulse; 31 float *blanker_phasefunc; 32 float *blanker_input; 33 signed int *blanker_pulindex; 34 signed char *blanker_flag; 35 36 37 BLANKER_CONTROL_INFO bln[BLN_INFO_SIZE]; 38 float blanker_pol_c1; 39 float blanker_pol_c2; 40 float blanker_pol_c3; 41 42 signed int largest_blnfit; 43 signed int blnclear_range; 44 signed int blnfit_range; 45 46 signed int timf2_show_pointer; 47 signed int blanker_pulsewidth; 48 signed int refpul_n; 49 signed int refpul_size; 50 signed int timf2_noise_floor_avgnum; 51 signed int timf2_noise_floor; 52 53 float timf2_despiked_pwr[2]; 54 float timf2_despiked_pwrinc[2]; 55 float clever_blanker_rate; 56 float stupid_blanker_rate; 57 signed int blanker_info_update_counter; 58 signed int blanker_info_update_interval; 59 float blanker_phaserot; 60 61