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()}
|
||||
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)
|
||||
|
Reference in New Issue
Block a user