Tool/software:
Hello Forms,
How to implement Bilinear Interpolation for the Below Tables in CCS(LAUNCHPADXL-F28379D) using C in TMS320F28379D Controller.
Iq table:
Id table:
I tried to Implement the below table as using through below Steps.
1. Finding the Boundary Index of ReqX and ReqY.
2. Finding Boundary Values of ReqX, ReqY.
3. Find Dx, Dy and Find Interpolated Value(as Shown Below)
Let the P(2900,16.65) in Iq Table,
dx = 0.8, dy = 0.66, P11 = 145.1, P21= 145.1, P12 = 168.4, P22 = 168.4
First Term: P11*(1-dy)*(1-dx) :
145.1 *(1-0.66)*(1-0.8) = 36.3
Second Term: P12*(1-dy)*(dx) :
168.1 *(1-0.66)*(0.8) = 42.1
Third Term: P21*(dy)*(1-dx) :
145.1 *(0.66)*(1-0.8) = 36.3
Fourth Term: P22*(dy)*(dx) :
168.1 *(0.66)*(0.8) = 42.1
P = 36.3+42.1+36.3+42.1 = 156.7
What are the recommended methods for implementing interpolation without manual input? Please explain the process and suggest some file formats for optimizing size.
Hi,
I don't personally have experience implementing different look-up table interpolation methods for motor control (we haven't used them in our example solutions). I'll discuss with some colleagues and see if they have some input.
I did find this older TI doc on the topic, it may be useful to reference: bpra046.pdf
Best,
Kevin
Hi Kevin,
Thank you for sharing the TI documentation.
Please let us know if you come across any additional references from your side.