Implementation Collision-Avoidance Algorithm: Speed Control S = S0(1 − D)2 p ← position_on_map, D ← danger_level, factor ← 1 if D = 0 then {save current position} else if D = 1 then go back to saved position, factor ← 0 else if D > Dprevious then factor ← (1 − D)2 end if speed ← speed0 ∗ factor Dprevious ← D Andrei Sherstyuk, Anton Treskunov Collision-free Travel with Terrain Maps