4 ms·
Is this just an example? Because if I wanted to rotate a vector, I'd do it with vectors, not trig. Which requires multiplication and addition, right? What am I
by JoeAltmaier 8y ago
Is this just an example? Because if I wanted to rotate a vector, I'd do it with vectors, not trig. Which requires multiplication and addition, right? What am I missing.
- deleted 8y ago[deleted]
- gcb0 8y agomissing the "in hardware" part? target may be a simple microcontroller or fpga that lacks multiplication.
- JoeAltmaier 8y agoYet is has trig? Come on.
- Khoth 8y agoIt doesn't have trig. The algorithm just requires 32 precomputed trig results that are stored in a lookup table.
- markrages 8y agoIndeed, I have used CORDIC for rectangular-to-polar on a little micro without multiply (and power-constrained by a coin cell). I made a code-generator for this, see https://github.com/markrages/cordic_polar https://github.com/markrages/cordic_polar
- JoeAltmaier 8y agoVery sweet!
- detaro 8y agoThe goal isn't rotating a vector. Rotating a vector is how the actual goal, compute sin/cos, is achieved.