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

Compile error. #4

Open
BoJack62 opened this issue May 30, 2021 · 3 comments
Open

Compile error. #4

BoJack62 opened this issue May 30, 2021 · 3 comments

Comments

@BoJack62
Copy link

I receive a compile error “ ‘passinfo’ not declared in this scope” when attempting to compile using either Arduino IDE or Web Editor.

@alexchang0229
Copy link
Owner

Hi Bojack,

Sorry for the late response, for some reason I didn't get notified.

Just so I understand your problem, are you compiling 'tracker_main.ino' and it's giving you an error?

Could you post a screenshot of your compiler error?

Thanks!

@BoJack62
Copy link
Author

BoJack62 commented Jun 25, 2021 via email

@alexchang0229
Copy link
Owner

Yeah, I had a few people contact me about the 'min' variable, that's on me, I guess it's a special word in C++. I Changed that in the most recent update. Just needed to change the name of the variable where it appears.

As for compiling with the functions in different files, as long as all the .ino files are in the same folder named '/tracker_main' it should work; I also updated the repository to reflect this.

And at line 11 there's #define DEBUG which is used in line 86 in #ifdef DEBUG. If DEBUG is defined, the Arduino will wait for a serial connection so it can print out what it's doing. If you don't need that you can get rid of the #define DEBUG line.

The initial EL should be 20 degrees, this is defined in line 262. The motors I'm using have a step angle of 5.625 x 1/64 so at 227 steps it's around 20 degrees.

Hopes this helps, let me know if you have any other questions!

Alex

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