Open comments for this post
The rover has a GUI now! using GTK i made a grid with buttons and a drawing area to visualize the rover moving.
- with ping to receive movement instructions
- and reset to position the rover back to the center
- the button images should change because they are now just hand drawn (;
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. ¯_(ツ)_/
Open comments for this post
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.
Open comments for this post
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
Open comments for this post
the rover and server scripts are talking via tcp.