added functions for control of gantry crane