Barnard-PL-Labs / esp32-tanks

5 stars 0 forks source link

Tank instructions from Server #20

Closed symoreios closed 6 months ago

symoreios commented 7 months ago

Currently the flask server just pops the instruction on top of the stack and sends it to whichever tank sent a get request. This won't work when all 4 tanks are connected, need some sort of algorithm to send tanks the same instructions at the same time. As the tanks are currently sending get requests to the flask server, instead of the flask server pushing instructions to them, might need to either go back to a "push" set up somehow, or find some way on the flask side to ensure all 4 tanks get the same instructions at the same time.

zjc2106 commented 7 months ago

Fixed in commit b23fd0a by keeping track of which tanks have ran each command (using their IPs). Need to test with multiple tanks.