THE ANNIN ROBOTICS FORUM HAS MOVED TO A NEW COMMUNITY. 👉
Issue with AR3 ARCS...
 
Notifications
Clear all

Issue with AR3 ARCS_teensy_sketch Encoder.h file not compiling

4 Posts
2 Users
0 Reactions
56 Views
Avatar of Quinn Sullivan
(@quinn-sullivan)
Active Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

Hello, there's one error that I can't quite clear on the ARCS_teensy_sketch due to the Encoder.h file:

 

In file included from C:\Users\....\ARCS_teensy_sketch.ino:195:0:

Encoder.h: In function 'void loop()':

C:\Users\.....\ARCS_teensy_sketch\Encoder.h:161:70: warning: local class 'class loop()::Encoder' shall not have static data member 'loop()::Encoder_internal_state_t* loop()::Encoder::interruptArgs [55]' [-fpermissive]

static Encoder_internal_state_t * interruptArgs[ENCODER_ARGLIST_SIZE];

 

If there isn't a declared variable type in front of "Encoder_internal_state_t", it makes more errors.

I tried changing the "static" variable type to a "volatile", got 60 errors for each interruptArgs[ ].

Thought maybe that variable may need to be made public, no luck either.

 
public:
	Encoder_internal_state_t encoder;
 

I can't run anything until I can resolve this error and download to the Teensy 4.1.

Any thoughts?

 

I put all three files into this Google Drive folder.

 
 

Thank you.



   
Quote
Chris Annin
(@chris-annin)
Member Admin
Joined: 2 months ago
Posts: 535
 

Hi Quinn, do you have the encoder library installed?



   
ReplyQuote
Avatar of Quinn Sullivan
(@quinn-sullivan)
Active Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

@chris-annin Hey Chris, I had tried it with just copy/pasting the "Encoder.h" and the other header files into the libraries folder. But it looks like that doesn't actually install it. Will try that, thank you!



   
ReplyQuote
Avatar of Quinn Sullivan
(@quinn-sullivan)
Active Member Customer
Joined: 2 months ago
Posts: 4
Topic starter  

Installed the Encoder library, deleted the .ino file and pasted a fresh downloaded file into the project folder, and it compiled for both teensy and Arduino sketches. Thank you so much!



   
ReplyQuote
Share:
Upload your Photo