Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twiddle_factors_256_br.h #1

Closed
skywalker45 opened this issue Mar 15, 2016 · 2 comments
Closed

twiddle_factors_256_br.h #1

skywalker45 opened this issue Mar 15, 2016 · 2 comments

Comments

@skywalker45
Copy link

Hey olewolf, great work with the geophone, i just have a little problem. Before i go on, I'll like to specify what I'm working with.
Arduino version: 1.6.8
OS: windows 7
these are the errors i get back when i try to verify the geophone.ino
In file included from C:\Users\WKUUSER\Documents\geophone-master\Geophone\Geophone.ino:98:0:

C:\Users\WKUUSER\Documents\Arduino\libraries\geophone-master/twiddle_factors_256_br.h:10:7: error: 'prog_int16_t' does not name a type

const prog_int16_t twiddle_real[ 256 ] PROGMEM =

   ^

C:\Users\WKUUSER\Documents\Arduino\libraries\geophone-master/twiddle_factors_256_br.h:46:7: error: 'prog_int16_t' does not name a type

const prog_int16_t twiddle_imag[ 256 ] PROGMEM =

   ^

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28:0,

             from sketch\Geophone.ino.cpp:1:

C:\Users\WKUUSER\Documents\geophone-master\Geophone\Geophone.ino: In function 'void fft_radix2_512(short int_, short int_)':

Geophone:465: error: 'twiddle_real' was not declared in this scope

   short WR = pgm_read_word_near( twiddle_real + group );

                                  ^

Geophone:466: error: 'twiddle_imag' was not declared in this scope

   short WI = pgm_read_word_near( twiddle_imag + group );

                                  ^

exit status 1
'twiddle_real' was not declared in this scope

i realized it's something with the twiddle code, so i went ahead to take a look.
on the 10th line, const prog_int16_t twiddle_real[ 256 ] PROGMEM =
prog_int16_t isnt recognized even when described.

Any help would be appreciated

@olewolf
Copy link
Owner

olewolf commented Mar 15, 2016

Looks like this may be caused by a compiler change. Try and change the lines to:

const int16_t twiddle_real[ 256 ] PROGMEM =

and

const int16_t twiddle_imag[ 256 ] PROGMEM =

and see if that works.

@skywalker45
Copy link
Author

wow, thank you for the prompt reply, i had just made the change before seeing this. Thank you again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants