Added default panel files (vscore) to the templates, and made the
rotation maths in the neoden pnp file generation more robust
This commit is contained in:
@@ -115,8 +115,8 @@ def comp_format(filt, offset):
|
||||
t[p] = "{:.2f}".format(abs(float(t[p]) - offset[n]))
|
||||
rotation = float(t[rot])
|
||||
rotation = rotation + offset[2]
|
||||
if rotation > 180.0:
|
||||
rotation = -1 * (360.0 - rotation)
|
||||
# Wrap the phase [-180, 180]
|
||||
rotation = (rotation + 180.0) % (2 * 180.0) - 180.0
|
||||
t[rot] = "{:.2f}".format(rotation)
|
||||
out.append(t)
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user