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

Compiling errors #1

Open
monkzzz opened this issue Jan 24, 2021 · 3 comments
Open

Compiling errors #1

monkzzz opened this issue Jan 24, 2021 · 3 comments

Comments

@monkzzz
Copy link

monkzzz commented Jan 24, 2021

I'm having problems when compiling the slave board.
I to go to config.h and define slave, and the errors i get are related to some identifiers being undefined because only being defined if master.
Or,
Are we supposed to use master in both boards?

@gearsincorg
Copy link
Owner

I use the same code in both boards.
I didn't think I still had and MASTER/SLAVE defines in there. I guess I need to check, and eliminate them.
So.. leave MASTER defined and load up both modules with the same code.

@monkzzz
Copy link
Author

monkzzz commented Jan 26, 2021

Thanks for the reply, then it makes a lot more sense.
Btw, since you use the same firmware on both, I assume it doesn't matter in which board you connect the Bluetooth module.
Or is it advised to be used on one of the boards in specific?

@gearsincorg
Copy link
Owner

Since the code that receives a drive command will use the first speed for its motor and send the second speed to the other side. One of these will be negated so if you put the Bluetooth on the slave, the speeds will be assigned to the wrong sides, so the board will run in the opposite direction.

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