fix satellites positions in the west
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Dec 2005 01:40:11 +0000 (01:40 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 19 Dec 2005 01:40:11 +0000 (01:40 +0000)
lib/python/Components/NimManager.py

index c8b4adb..3bc47ec 100644 (file)
@@ -127,9 +127,11 @@ class NimManager:
                def startElement(self, name, attrs):
                        if (name == "sat"):
                                #print "found sat " + attrs.get('name',"") + " " + str(attrs.get('position',""))
-                               tpos = attrs.get('position',"")
+                               tpos = int(attrs.get('position',""))
                                if tpos < 0:
+                                       print "negative"
                                        tpos = 3600 + tpos
+                               print "[NimManager.py] tpos:", tpos
                                tname = attrs.get('name',"")
                                self.satellites[tpos] = tname
                                self.satList.append( (tname, tpos) )