History | View | Annotate | Download (13.5 KB)
Refactored main_new timings so that bots travel through intersections morefluidly
Fixed issue where if bot had no other bot in front it would still wait the timefor the imaginary bot in front to drive out of intersection.
Temporary hack to make sure bot that announces it has exited is really clear ofintersection.
Updated some random number generators to have more entropy.
This is a working version of the code for the demo. It works on Bot 7, and partially on Bot 14. Due to the number of changes here, I'll list them by file:
traffic_navigation.hI added a #define for sendGraph, so its main won't be compiled unless defined. Uncomment the #define line at the top of this file to turn its main on. Make sure you also comment out the #define for main-new. Also, has the new #define for the node wireless packet type....
Fixed all compilation errors and warnings in traffic_navigation. If you committed theseabominations, I hope you're sorry. I only made things compile. If I fixed your code, itmight no longer do what you intended, but I can pretty much guarantee that it didn't do...
Fixed small bug in new main where if barcode was invalid, forgot to restartmotors for line following.
Traffic Navigation:Fixed some various issues with the new main (bad calls & added barcode errorhandling)It compiles by default now.
Traffic Navigation:Started integration of the new intersection queue code.(main-intersectionDebug.c, main-new.c, & traffic_navigation.h).The new code will not be compiled by default.Additionally, I added #defines to all orb control statements becausethey were interfering with each other. To turn some orb control statements on,...