Python Question

I have some background in coding, but not python.

I have been looking over robot.py and can follow most of it, but some parts just dont make any sense.

#calculate the absolute distance between the foot’s highest and lowest point
footMax = 0
footMin = floor
footRange = abs(footMax-footMin)

This is an part of the ReplantFoot function, it is the only place I could find “floor”.
Since floor has not been given a value, wouldnt that mean footRange will always equal 0 at best, or at worst some random number?

Thank you in advance for helping a python noob.

__builtins__.floor = 60 # this is the minimum level the legs will reach

From PoMoCo.py. I believe that this effectively is a global variable within the code as executed.

Good luck!

Thanks rpcook!

I did a find for floor in PoMoCo, but must have messed up some how.