aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/sec.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-05-30 10:25:26 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-05-30 10:25:26 +0000
commit94284f21b07f1756120e8b6f5dd53e485a9ff66d (patch)
tree8c9aa7ae8ec28ce27f9d595927b9faa8d81fce52 /lib/dvb/sec.cpp
parent01921e17fbec0161d4f1578d6648c08e4968f0c4 (diff)
downloadenigma2-94284f21b07f1756120e8b6f5dd53e485a9ff66d.tar.gz
enigma2-94284f21b07f1756120e8b6f5dd53e485a9ff66d.zip
rotor turning with measure input power is now working
Diffstat (limited to 'lib/dvb/sec.cpp')
-rw-r--r--lib/dvb/sec.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/dvb/sec.cpp b/lib/dvb/sec.cpp
index 041d1fbc..be022a16 100644
--- a/lib/dvb/sec.cpp
+++ b/lib/dvb/sec.cpp
@@ -332,13 +332,19 @@ RESULT eDVBSatelliteEquipmentControl::prepare(iDVBFrontend &frontend, FRONTENDPA
sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, 8) ); // 2 seconds rotor start timout
sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 250) );
sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_RUNNING_INPUTPOWER) );
- sec_sequence.push_back( eSecCommand(eSecCommand::IF_RUNNING_GOTO, +3 ) );
+ eSecCommand::rotor cmd;
+ cmd.direction=1; // check for running rotor
+ cmd.deltaA=rotor_param.m_inputpower_parameters.m_threshold;
+ cmd.steps=+3;
+ cmd.okcount=0;
+ sec_sequence.push_back( eSecCommand(eSecCommand::IF_INPUTPOWER_DELTA_GOTO, cmd ) );
sec_sequence.push_back( eSecCommand(eSecCommand::IF_TIMEOUT_GOTO, +8 ) );
sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -4) );
sec_sequence.push_back( eSecCommand(eSecCommand::SET_TIMEOUT, 240) ); // 1 minute running timeout
sec_sequence.push_back( eSecCommand(eSecCommand::SLEEP, 250) );
sec_sequence.push_back( eSecCommand(eSecCommand::MEASURE_RUNNING_INPUTPOWER) );
- sec_sequence.push_back( eSecCommand(eSecCommand::IF_STOPPED_GOTO, +3 ) );
+ cmd.direction=0; // check for stopped rotor
+ sec_sequence.push_back( eSecCommand(eSecCommand::IF_INPUTPOWER_DELTA_GOTO, cmd ) );
sec_sequence.push_back( eSecCommand(eSecCommand::IF_TIMEOUT_GOTO, +2 ) );
sec_sequence.push_back( eSecCommand(eSecCommand::GOTO, -4) );
sec_sequence.push_back( eSecCommand(eSecCommand::UPDATE_CURRENT_ROTORPARAMS) );