The task my daughter invented for the mBot is bringing something (cookies) over from kitchen to her room. As of now it does it - we timed the legs and turns at given speeds and programmed them with going forward and then delay for appropriate time. The thing is, though, that I would love to add basic obstacle detection (make robot stop if something is in its path) and I wonder how would I do that? I could use milis() (even though it would require to write in C as I don’t think block has it) and some elaborate state switching to follow the path while looking for obstacles in the main loop - but maybe there is a better way?
Also, does “speed” officially translate into anything - is this mms/min or cms / hour?