definition of several constants & first implementation of the open loop