DIT112-V21 / group-08

MIT License
1 stars 3 forks source link

Arduino help sketch for iOS App #29

Closed adamtelles closed 3 years ago

adamtelles commented 3 years ago

The iOS app will generate a path and a set of instructions for the car to follow. These instructions will be communicated via MQTT to the car. The Arduino-MQTT sketch is a working sketch allowing the car to connect to a MQTT server. Advanced Obstacle Avoidance has a few good movement methods.

What will be needed in arduino for the iOS app to work is: (In the iOS-App branch there is a sketch called '_arduinoMQTTiOS.ino' which already has a few of the functionalities. They may need some enhancements and testing to make sure that they work)

alex-nordin commented 3 years ago

"A method that can take some degrees as a parameter. Rotate the car that many degrees. And then stop." This method is in the arduino-tweaks branch. It is two methods, but it can be made into one pretty easily I think. It is usually off by about 3 degrees when turning, so if anyone has any idea why that is they can fix it.

alex-nordin commented 3 years ago

"A method that can take a distance as a parameter. Move the car that distance forward. And then stop." Pushed this to the arduino-tweaks branch as well. Like the turning one it has some issues with accuracy, which is caused by the rate it updates. So to move the accurate distance the car has to move really slow. I don't know if this is a problem with my code or just an inevitable drawback of the sensors, but I won't be mad if someone tells me I just wrote dumb code. :)

"A method that can send speed / distance traveled via MQTT to the app." I'll look at this one next.

esjolund commented 3 years ago

"Some sort of priority queue such that the car can follow the instructions in a specific order." I will try to implement this feature.

adamtelles commented 3 years ago

Closing since not all tasks are relevant anymore. Will open new issue