remove others; added proper readback calc
This commit is contained in:
@ -178,14 +178,6 @@ class UndShiftQuadrants(Adjustable):
|
|||||||
inverted_opposites = {v: k for k, v in opposites.items()}
|
inverted_opposites = {v: k for k, v in opposites.items()}
|
||||||
opposites.update(inverted_opposites)
|
opposites.update(inverted_opposites)
|
||||||
|
|
||||||
self.others = others = {
|
|
||||||
"TL": "BL",
|
|
||||||
"TR": "BR"
|
|
||||||
}
|
|
||||||
|
|
||||||
inverted_others = {v: k for k, v in others.items()}
|
|
||||||
others.update(inverted_others)
|
|
||||||
|
|
||||||
|
|
||||||
self.all_names = names = opposites.keys()
|
self.all_names = names = opposites.keys()
|
||||||
pvnames = [f"{ID}-{n}" for n in names]
|
pvnames = [f"{ID}-{n}" for n in names]
|
||||||
@ -222,9 +214,8 @@ class UndShiftQuadrants(Adjustable):
|
|||||||
|
|
||||||
|
|
||||||
def get_current_value(self):
|
def get_current_value(self):
|
||||||
vals = [self.adjs.__dict__[n].get_current_value() for n in self.all_names]
|
d = self.adjs.__dict__
|
||||||
print(vals)
|
return d["TL"].get_current_value() - d["TR"].get_current_value()
|
||||||
return max(vals) #TODO: this is not final
|
|
||||||
|
|
||||||
def is_moving(self):
|
def is_moving(self):
|
||||||
return any(a.is_moving() for a in self.adjs)
|
return any(a.is_moving() for a in self.adjs)
|
||||||
|
Reference in New Issue
Block a user