FastCORDIC
Fast CORDIC algorithm for ATAN2 for Arduino
Install / Use
/learn @MartinStokroos/FastCORDICREADME
fastCORDIC
Fast CORDIC algorithm for ATAN2 on the Arduino.
This library is a collection (under construction) of trigonometric functions, efficiently calculated with the COordinate Rotation DIgital Computer (CORDIC) algorithm. The function implemented here is the atan2sqrt function, which calculates the angle and radius (length) of the vector that points to (x,y). This function is very useful in DSP applications such as digital down conversion.
The CORDIC implementation of ATAN2 is up to twice as fast as the atan2 from the standard Arduino library. The CORDIC algorithm rotates a vector clockwise until it is aligned with the positive x-axis. In this implementation the length of the vector is retained and thus, the square-root of x^2^ + y^2^ is known and equals to the value of x after rotation.
An example sketch is provided for benchmarking the CORDIC routine(s).
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
