ARM-Cortex M3-Based Two-Wheel Robot for Assessing Grid Cell Model of Medial Entorhinal Cortex: Progress towards Building Robots with Biologically Inspired Navigation-Cognitive Maps
Listing 1
Round-Robin scheduling pseudocode to manage navigation.
(1)
(2) while(true)
(3) if(right wheel rotates)
(4) number of encoder pulses increases;
(5)
(6) if(left wheel rotates)
(7) number of encoder pulses increases;
(8)
(9) if(sensor interruption flag indicates collision)