Part Number: MSP430FR5994
Other Parts Discussed in Thread: MSP430WARE
Tool/software: Code Composer Studio
Hi,
I need to solve a set of four linear simultaneous equations of the form [A]{x}={b} continuously with new {b} values based on sensor readings. There are a number of methods to solve the equations but I couldn’t find one already coded that I could simply call so I went with Cramer’s method. I am doing as much of the calculation as I can (e.g., calculating |A|, calculating the coefficients required for the other determinants) before the measurement/calculation loop so that I am not repeating steps, but it is still taking too long for the calculation. I am running the MCLK at 16 MHz (as fast as it can go).
How can I do this calculation faster?
- Is there a method already coded that I can simply call? If so, I will still have to determine if it is faster than what I am currently doing.
- Can the DSP be used?
- ?
After the equations are solved I need to do a few other calculations using sqrt, abs and atan2. These are also very slow. I can sample the sensors very quickly but these calculations are a real bottleneck.
Any help would be appreciated.
Larry