diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-08-06 12:34:30 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-08-06 12:34:30 +0000 |
| commit | cdc419f13f0ef31854811cbfb0eb3f8444302e57 (patch) | |
| tree | 8f9f30866914cb51b2110447eb1e4750bf7ab558 /lib/python/Screens/Satconfig.py | |
| parent | 7df85298de9a01b82ca6d5268cfd0858107499f4 (diff) | |
| download | enigma2-cdc419f13f0ef31854811cbfb0eb3f8444302e57.tar.gz enigma2-cdc419f13f0ef31854811cbfb0eb3f8444302e57.zip | |
at possibility to change the motor running/stopped input power thresold in
simple motor config
Diffstat (limited to 'lib/python/Screens/Satconfig.py')
| -rw-r--r-- | lib/python/Screens/Satconfig.py | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index 644d1d96..e95a5b46 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -22,22 +22,23 @@ class NimSetup(Screen, ConfigListScreen): list.append(getConfigListEntry(_("Port D"), self.nimConfig.diseqcD)) def createPositionerSetup(self, list): -# list.append(getConfigListEntry(_("Positioner mode"), self.nimConfig.positionerMode)) -# if self.nimConfig.positionerMode.value == "usals": # USALS - list.append(getConfigListEntry(_("Longitude"), self.nimConfig.longitude)) - list.append(getConfigListEntry(" ", self.nimConfig.longitudeOrientation)) - list.append(getConfigListEntry(_("Latitude"), self.nimConfig.latitude)) - list.append(getConfigListEntry(" ", self.nimConfig.latitudeOrientation)) - self.turningSpeed = getConfigListEntry(_("Rotor turning speed"), self.nimConfig.turningSpeed) - self.list.append(self.turningSpeed) - if self.nimConfig.turningSpeed.value == "fast epoch": - self.turnFastEpochBegin = getConfigListEntry(_("Begin time"), self.nimConfig.fastTurningBegin) - self.turnFastEpochEnd = getConfigListEntry(_("End time"), self.nimConfig.fastTurningEnd) - self.list.append(self.turnFastEpochBegin) - self.list.append(self.turnFastEpochEnd) + nim = self.nimConfig + list.append(getConfigListEntry(_("Longitude"), nim.longitude)) + list.append(getConfigListEntry(" ", nim.longitudeOrientation)) + list.append(getConfigListEntry(_("Latitude"), nim.latitude)) + list.append(getConfigListEntry(" ", nim.latitudeOrientation)) -# elif self.nimConfig.positionerMode.value == "manual": # manual -# pass + self.advancedPowerMeasurement = getConfigListEntry(_("Use Power Measurement"), nim.powerMeasurement) + list.append(self.advancedPowerMeasurement) + if nim.powerMeasurement.value: + list.append(getConfigListEntry(_("Power threshold in mA"), nim.powerThreshold)) + self.turningSpeed = getConfigListEntry(_("Rotor turning speed"), nim.turningSpeed) + list.append(self.turningSpeed) + if nim.turningSpeed.value == "fast epoch": + self.turnFastEpochBegin = getConfigListEntry(_("Begin time"), nim.fastTurningBegin) + self.turnFastEpochEnd = getConfigListEntry(_("End time"), nim.fastTurningEnd) + list.append(self.turnFastEpochBegin) + list.append(self.turnFastEpochEnd) def createSetup(self): print "Creating setup" |
