Changeset 11023
- Timestamp:
- 11/05/11 01:07:45 (12 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/frontenddev.h
r11014 r11023 1142 1142 if(fec == 8) fec = FEC_4_5; 1143 1143 if(fec == 9) fec = FEC_9_10; 1144 if(fec == 10) fec = FEC_NONE; 1145 if(fec == 11) fec = FEC_6_7; 1146 1144 if(fec == 15) fec = FEC_NONE; 1145 1147 1146 int pilot = tpnode->pilot; 1148 1147 if(pilot == 0) pilot = PILOT_OFF; … … 1160 1159 if(modulation == 2) modulation = PSK_8; 1161 1160 if(modulation == 3) modulation = QAM_16; 1162 if(modulation == 4) modulation = QAM_32;1163 if(modulation == 5) modulation = QAM_64;1164 if(modulation == 6) modulation = QAM_128;1165 if(modulation == 7) modulation = QAM_256;1166 if(modulation == 8) modulation = VSB_8;1167 if(modulation == 9) modulation = VSB_16;1168 1161 1169 1162 p[0].cmd = DTV_CLEAR; … … 1236 1229 return; 1237 1230 } 1231 1232 int fec = tpnode->fec; 1233 if(fec == 0) fec = FEC_AUTO; 1234 if(fec == 1) fec = FEC_1_2; 1235 if(fec == 2) fec = FEC_2_3; 1236 if(fec == 3) fec = FEC_3_4; 1237 if(fec == 4) fec = FEC_5_6; 1238 if(fec == 5) fec = FEC_7_8; 1239 if(fec == 6) fec = FEC_8_9; 1240 if(fec == 15) fec = FEC_NONE; 1241 1242 int modulation = tpnode->modulation; 1243 if(modulation == 0) modulation = QAM_AUTO; 1244 if(modulation == 1) modulation = QAM_16; 1245 if(modulation == 2) modulation = QAM_32; 1246 if(modulation == 3) modulation = QAM_64; 1247 if(modulation == 4) modulation = QAM_128; 1248 if(modulation == 5) modulation = QAM_256; 1238 1249 1239 1250 #if DVB_API_VERSION >= 5 … … 1245 1256 p[1].cmd = DTV_DELIVERY_SYSTEM, p[1].u.data = tpnode->system; 1246 1257 p[2].cmd = DTV_FREQUENCY, p[2].u.data = tpnode->frequency; 1247 p[3].cmd = DTV_MODULATION, p[3].u.data = tpnode->modulation;1258 p[3].cmd = DTV_MODULATION, p[3].u.data = modulation; 1248 1259 p[4].cmd = DTV_SYMBOL_RATE, p[4].u.data = tpnode->symbolrate; 1249 1260 p[5].cmd = DTV_INVERSION, p[5].u.data = (fe_spectral_inversion_t) tpnode->inversion; 1250 p[6].cmd = DTV_INNER_FEC, p[6].u.data = tpnode->fec;1261 p[6].cmd = DTV_INNER_FEC, p[6].u.data = fec; 1251 1262 p[7].cmd = DTV_TUNE; 1252 1263 cmdseq.num = 8; 1253 1264 1254 debug(200, "frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d, system=%d", tpnode->frequency, tpnode->inversion, tpnode->fec, tpnode->symbolrate, tpnode->modulation, tpnode->system);1265 debug(200, "frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d, system=%d", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation, tpnode->system); 1255 1266 #else 1256 1267 struct dvb_frontend_parameters tuneto; … … 1262 1273 tuneto.u.qam.modulation = tpnode->modulation; 1263 1274 1264 debug(200, "frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d", tpnode->frequency, tpnode->inversion, tpnode->fec, tpnode->symbolrate, tpnode->modulation);1275 debug(200, "frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation); 1265 1276 #endif 1266 1277 … … 1291 1302 return; 1292 1303 } 1304 1305 int fec = tpnode->fec; 1306 if(fec == 0) fec = FEC_1_2; 1307 if(fec == 1) fec = FEC_2_3; 1308 if(fec == 2) fec = FEC_3_4; 1309 if(fec == 3) fec = FEC_5_6; 1310 if(fec == 4) fec = FEC_7_8; 1311 if(fec == 5) fec = FEC_AUTO; 1312 1313 int modulation = tpnode->modulation; 1314 if(modulation == 0) modulation = QPSK; 1315 if(modulation == 1) modulation = QAM_16; 1316 if(modulation == 2) modulation = QAM_64; 1317 if(modulation == 3) modulation = QAM_AUTO; 1318 1319 /* 1320 int bandwidth = tpnode->bandwidth; 1321 if(bandwidth == 0) bandwidth = BANDWIDTH_8MHZ; 1322 if(bandwidth == 1) bandwidth = BANDWIDTH_7MHZ; 1323 if(bandwidth == 2) bandwidth = BANDWIDTH_6MHZ; 1324 if(bandwidth == 3) bandwidth = BANDWIDTH_AUTO; 1325 1326 int transmission = tpnode->transmission; 1327 if(transmission == 0) transmission = TRANSMISSIONMODE_2K; 1328 if(transmission == 1) transmission = TRANSMISSIONMODE_8K; 1329 if(transmission == 2) transmission = TRANSMISSIONMODE_AUTO; 1330 1331 int guardinterval = tpnode->guardinterval; 1332 if(guardinterval == 0) guardinterval = GUARDINTERVAL_1_32; 1333 if(guardinterval == 1) guardinterval = GUARDINTERVAL_1_16; 1334 if(guardinterval == 2) guardinterval = GUARDINTERVAL_1_8; 1335 if(guardinterval == 3) guardinterval = GUARDINTERVAL_1_4; 1336 if(guardinterval == 4) guardinterval = GUARDINTERVAL_AUTO; 1337 1338 int hierarchy = tpnode->hierarchy; 1339 if(hierarchy == 0) hierarchy = HIERARCHY_NONE; 1340 if(hierarchy == 1) hierarchy = HIERARCHY_1; 1341 if(hierarchy == 2) hierarchy = HIERARCHY_2; 1342 if(hierarchy == 3) hierarchy = HIERARCHY_4; 1343 if(hierarchy == 4) hierarchy = HIERARCHY_NONE; 1344 */ 1293 1345 1294 1346 tuneto.frequency = tpnode->frequency; 1295 1347 tuneto.inversion = tpnode->inversion; 1296 tuneto.u.ofdm.bandwidth = 0;1348 //tuneto.u.ofdm.bandwidth = bandwidth; 1297 1349 tuneto.u.ofdm.code_rate_HP = 0; 1298 1350 tuneto.u.ofdm.code_rate_LP = 0; 1299 1351 tuneto.u.ofdm.constellation = 0; 1300 tuneto.u.ofdm.transmission_mode = 0;1301 tuneto.u.ofdm.guard_interval = 0;1302 tuneto.u.ofdm.hierarchy_information = 0;1352 //tuneto.u.ofdm.transmission_mode = transmission; 1353 //tuneto.u.ofdm.guard_interval = guardinterval; 1354 //tuneto.u.ofdm.hierarchy_information = hierarchy; 1303 1355 1304 1356 fediscard(node); -
titan/titan/scan.h
r10859 r11023 855 855 856 856 //system 857 tmpstr = transpondergetsystemstr( NULL, 1);857 tmpstr = transpondergetsystemstr(tpnode, 1); 858 858 changeinput(system, tmpstr); 859 859 free(tmpstr); tmpstr = NULL; 860 tmpstr = transpondergetsystemstr( NULL, 2);860 tmpstr = transpondergetsystemstr(tpnode, 2); 861 861 changechoiceboxvalue(system, tmpstr); 862 862 free(tmpstr); tmpstr = NULL; … … 878 878 879 879 //inversion 880 tmpstr = transpondergetinversionstr( NULL, 1);880 tmpstr = transpondergetinversionstr(tpnode, 1); 881 881 changeinput(inversion, tmpstr); 882 882 free(tmpstr); tmpstr = NULL; 883 tmpstr = transpondergetinversionstr( NULL, 2);883 tmpstr = transpondergetinversionstr(tpnode, 2); 884 884 changechoiceboxvalue(inversion, tmpstr); 885 885 free(tmpstr); tmpstr = NULL; … … 901 901 902 902 //polarization 903 tmpstr = transpondergetpolarizationstr( NULL, 1);903 tmpstr = transpondergetpolarizationstr(tpnode, 1); 904 904 changeinput(polarization, tmpstr); 905 905 free(tmpstr); tmpstr = NULL; 906 tmpstr = transpondergetpolarizationstr( NULL, 2);906 tmpstr = transpondergetpolarizationstr(tpnode, 2); 907 907 changechoiceboxvalue(polarization, tmpstr); 908 908 free(tmpstr); tmpstr = NULL; … … 915 915 916 916 //fec 917 tmpstr = transpondergetfecstr( NULL, 1);917 tmpstr = transpondergetfecstr(tpnode, 1); 918 918 changeinput(fec, tmpstr); 919 919 free(tmpstr); tmpstr = NULL; 920 tmpstr = transpondergetfecstr( NULL, 2);920 tmpstr = transpondergetfecstr(tpnode, 2); 921 921 changechoiceboxvalue(fec, tmpstr); 922 922 free(tmpstr); tmpstr = NULL; … … 929 929 930 930 //modulation 931 tmpstr = transpondergetmodulationstr( NULL, 1);931 tmpstr = transpondergetmodulationstr(tpnode, 1); 932 932 changeinput(modulation, tmpstr); 933 933 free(tmpstr); tmpstr = NULL; 934 tmpstr = transpondergetmodulationstr( NULL, 2);934 tmpstr = transpondergetmodulationstr(tpnode, 2); 935 935 changechoiceboxvalue(modulation, tmpstr); 936 936 free(tmpstr); tmpstr = NULL; … … 943 943 944 944 //rolloff 945 tmpstr = transpondergetrolloffstr( NULL, 1);945 tmpstr = transpondergetrolloffstr(tpnode, 1); 946 946 changeinput(rolloff, tmpstr); 947 947 free(tmpstr); tmpstr = NULL; 948 tmpstr = transpondergetrolloffstr( NULL, 2);948 tmpstr = transpondergetrolloffstr(tpnode, 2); 949 949 changechoiceboxvalue(rolloff, tmpstr); 950 950 free(tmpstr); tmpstr = NULL; … … 957 957 958 958 //pilot 959 tmpstr = transpondergetpilotstr( NULL, 1);959 tmpstr = transpondergetpilotstr(tpnode, 1); 960 960 changeinput(pilot, tmpstr); 961 961 free(tmpstr); tmpstr = NULL; 962 tmpstr = transpondergetpilotstr( NULL, 2);962 tmpstr = transpondergetpilotstr(tpnode, 2); 963 963 changechoiceboxvalue(pilot, tmpstr); 964 964 free(tmpstr); tmpstr = NULL;
Note: See TracChangeset
for help on using the changeset viewer.