*neutrino scansettings: moved scan setup into it's own modul

this was a port of original tuxbox neutrino as a
as similar for stand alone modules, hope it' works, but bugs are not excluded

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1331 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
thilo
2011-03-23 10:57:55 +00:00
parent ff31b54cd1
commit d2d3923635
15 changed files with 1137 additions and 658 deletions

View File

@@ -36,6 +36,7 @@
#include <gui/customcolor.h>
#include <driver/rcinput.h>
#include <gui/motorcontrol.h>
#include "gui/scan_setup.h"
#include <gui/color.h>
#include <gui/widget/menue.h>
#include <gui/widget/messagebox.h>
@@ -123,9 +124,9 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
/* send satellite list to zapit */
for(sit = satellitePositions.begin(); sit != satellitePositions.end(); sit++) {
if(!strcmp(sit->second.name.c_str(),get_set.satNameNoDiseqc)) {
if(!strcmp(sit->second.name.c_str(),scansettings.satNameNoDiseqc)) {
sat.position = sit->first;
strncpy(sat.satName, get_set.satNameNoDiseqc, 50);
strncpy(sat.satName, scansettings.satNameNoDiseqc, 50);
satList.push_back(sat);
if(sit->second.motor_position)
motorPosition = sit->second.motor_position;
@@ -136,10 +137,10 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
g_Zapit->setScanSatelliteList( satList);
TP.feparams.frequency = atoi(get_set.TP_freq);
TP.feparams.u.qpsk.symbol_rate = atoi(get_set.TP_rate);
TP.feparams.u.qpsk.fec_inner = (fe_code_rate_t)get_set.TP_fec;
TP.polarization = get_set.TP_pol;
TP.feparams.frequency = atoi(scansettings.TP_freq);
TP.feparams.u.qpsk.symbol_rate = atoi(scansettings.TP_rate);
TP.feparams.u.qpsk.fec_inner = (fe_code_rate_t)scansettings.TP_fec;
TP.polarization = scansettings.TP_pol;
#if 0
CZapitClient::CCurrentServiceInfo si = g_Zapit->getCurrentServiceInfo ();
TP.feparams.frequency = si.tsfrequency;