I drew a new background and new rover.
The server has a GUI now, just a live log of what is being sent. and connection info.
The rover GUI has an update, new buttons and a background.
You can now close the rover program and the server won’t crash. you can start the rover up again and reconnect.
i want to add a controller to the server for manual driving.
Making everything look better is also something I want to do. the rover and background are pretty ugly and the server still looks plain.
The rover has a GUI now! using GTK i made a grid with buttons and a drawing area to visualize the rover moving.
the server sends longer strings.
planning to add a background and make the buttons look like a controll panel.
while the rover is moving don’t press the ping button becouse than the program crashes. ¯_(ツ)_/
The server now sends full strings of instructions and the rover can properly decode them into forward, backward, left and right instructions.
I’m pretty proud of my implementation although I’m sure there is a better way.
The server now transmits random movement instructions.
the instructions have a 50%, 25%, 12.5% and 12.5% for 1, 01, 001 and 000. Because 1 is used much more its more efficient than encoding with 00, 01, 10 and 11
the rover and server scripts are talking via tcp.