lnls-dig / halcs

Hardware Abstraction Layer for Control Systems
GNU General Public License v3.0
1 stars 4 forks source link

[smio:dsp] Add position offsets for all rates #14

Open lerwys opened 8 years ago

lerwys commented 8 years ago

Issue by lerwys Friday Jun 27, 2014 at 16:06 GMT Originally opened as https://github.com/lnls-dig/bpm-sw/issues/14


Problem: We are moving the position calculation for TBT and MONIT rates to the high-level software (i.e., EPICS IOC). So, the following formulas:

x = Kx(a+d-b-c)/(a+b+c+d) + Xoffset y = Ky(a+b-c-d)/(a+b+c+d) + Yoffset q = Kx_(a+c-b-d)/(a+b+c+d) sum = Ks_sum

are going to be calculated in software, only.

However, the FOFB rate, in addition to the above, needs to have its position calculated in gateware, as it's going to be used for the FOFB distribution system.

So, the FOFB offsets (Xoffset and Yoffset) needs to exported for high-level software to be used in gateware.

Solution: Export FOFB Xoffset and Yoffset. This also needs gateware support, however!

lerwys commented 7 years ago

Also, we need to add the Kq and Qoffset, as well