gearsincorg / Hoverboards-for-assistive-devices

Use Hoverboards to add motor drives to assistive devices.
MIT License
16 stars 10 forks source link

Compiling errors #1

Open monkzzz opened 3 years ago

monkzzz commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.