Laser-triangulation adaptive control