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()} 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)