Comments on current code. 4th November 2025 Mr Fisher
You need a hierarchy of program files.
the lower down ones do simple things, but don't make many decisions, they talk with the hardware.
the higher one make tactical decisions, leaving the detail to the lower ones. They import the lower ones that they need.
========TROODON ===========
line 8 TROODON is imported by movement, is itself is imported by TROODON!! this is infinite recursion.
which one is the boss?
line 20 lmotor = Motor("L", 1.14) tuning for different robots will be different put this as a tuning item at the top
line 26 explain what Intenb does and why it's needed
line 45 read_walls_avg() readwalls takes 15ms this takes twice that long
line 49 function def read_walls_avg() is already defined in TROODON.
movementV7Better.py
faster_maze_solver_1.py
Back to Mongoliensis page
For 2025 we are considering doing Diagonals.
One result of this is that the cell movement needs to start as soon as the wheels enter the cell. <image>
The old movements started with the back of the robot on the back wall. <image>
It might be easier if all movements, Forward, Left,Right and U turn all used the new starting position,
although the very first cell cannot be started this way, as there is a wall at the back!
© Copyright St Albans Robots
Make a free website with Yola