Hi everyone,
I have URC10 controller that is connected to PS2 controller and LCD display shields. I finished 2 separate codes for remote controlled and also sensor controlled robot. Is it possible to put them in the same project and choose between them using LCD display buttons?
So in ideal it should work like this: When starting the robot, LCD gives two options: Remote mode and Sensor mode. After choosing any of the modes, either remote controlled mode or sensor controlled mode starts and you can any time go back to the main menu to choose another option.
I wrote LCD display code in the .ino file created separate tabs for remote control and sensor control. In each of them, instead of void setup() and void loop() I changed to void setupRemote(), void setupSensor() and void loopRemote(), void loopSensor().
I havent gotten it to work yet, but am I on the right track? Could it work that way?