remove others; added proper readback calc

This commit is contained in:
gac-maloja
2022-10-25 20:47:27 +02:00
parent d2830f3158
commit 7f08bb0253

View File

@ -178,14 +178,6 @@ class UndShiftQuadrants(Adjustable):
inverted_opposites = {v: k for k, v in opposites.items()}
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()
pvnames = [f"{ID}-{n}" for n in names]
@ -222,9 +214,8 @@ class UndShiftQuadrants(Adjustable):
def get_current_value(self):
vals = [self.adjs.__dict__[n].get_current_value() for n in self.all_names]
print(vals)
return max(vals) #TODO: this is not final
d = self.adjs.__dict__
return d["TL"].get_current_value() - d["TR"].get_current_value()
def is_moving(self):
return any(a.is_moving() for a in self.adjs)