From e09a23f0a4f342aa83854ce8cc11aacc09e350fd Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Mon, 10 Aug 2020 14:04:44 -0600 Subject: Added rotation --- tools/a.out | Bin 0 -> 16872 bytes tools/lookuptablemaker.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100755 tools/a.out create mode 100644 tools/lookuptablemaker.c (limited to 'tools') diff --git a/tools/a.out b/tools/a.out new file mode 100755 index 0000000..95fb169 Binary files /dev/null and b/tools/a.out differ diff --git a/tools/lookuptablemaker.c b/tools/lookuptablemaker.c new file mode 100644 index 0000000..f16420a --- /dev/null +++ b/tools/lookuptablemaker.c @@ -0,0 +1,29 @@ +// Example sine lut generator +#include +#include + +#define M_PI 3.1415926535f +#define SIN_SIZE 512 +#define SIN_FP 12 + +int main() +{ + int ii; + FILE *fp= fopen("sinlut.c", "w"); + unsigned short hw; + + fprintf(fp, "//\n// Sine lut; %d entries, %d fixeds\n//\n\n", + SIN_SIZE, SIN_FP); + fprintf(fp, "const short sin_lut[%d]=\n{", SIN_SIZE); + for(ii=0; ii