added distance stuff for winch, sensor and function