fixing coordTrf stuff and screen updating

- fix sign error in transformation for z
- MotorTweak.py rel_move relative to RBV not VAL
- SimMotorTweak.py move emits also RBV to update objects in SwissMX
- update Readme.md
This commit is contained in:
2024-01-18 16:23:26 +01:00
parent 681d42dc2e
commit 21811abd92
4 changed files with 66 additions and 60 deletions

View File

@@ -2357,8 +2357,8 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
trf2=np.asmatrix(np.identity(3))
trf2[:, :2]=trf
#p1=(0,0,1)*trf2 # =matrix([[-2376.8, 1376.8, 1. ]]) um
trf3=np.matrix( ((-p[0],0,0),(-p[1],0,0),(-1000*p[2],0,1)) )
#(0, 0, 1)*trf2*trf3
trf3=np.matrix( ((p[0],0,0),(p[1],0,0),(1000*p[2],0,1)) )
#(0, 0, 1)*trf2*trf3 -> z in um of gridpos(0,0)
t=(trf2*trf3)[:,0].A.ravel()
cz=f'{t[0]:+.18g}X{t[1]:+.18g}Y{t[2]:+.18g}'
except AttributeError:
@@ -2383,7 +2383,7 @@ Author Thierry Zamofing (thierry.zamofing@psi.ch)
_log.info('simulated')
else:
comm.gpascii._cb_func=lambda i, sz:self.cb_progress(i, sz, dlg)
#_log.critical('TEMPORARY DO NOT EXECUTE PROGRAM !!!');return
if dlg.wasCanceled():
# pv-monitor-func: start monitors
if not cfg.value(AppCfg.GBL_MISC)['live_on_collect']: