SUMMARY
Problem: Replicate Wimp mode (do the following things):
a. Sit(don't move) while not shoved.
b. if it is shoved look for bump sensors and rotate accordingly.
c. Drive forward approximately 500 millimetres.
Results:
My code worked fairly well. The problem i had was that i accidentally put an extra zero on the
drive foward section of the code. The robot drove 5 feet instead of 2.
Lessons Learned:
1. The create takes a while to stop. It is always wise to have a delay after the stop command.
2. If it's possible, keep a simple flow to the code. Combine sections of the code that are the same.
For example, instead of having each rotate have it's own drive forward, combine all of them.
3. Don't update the cr8 packet after setting distance to 0. WILL CAUSE HEADACHES :(
David's_wimp_code Δ