Fixed error in SetCoilDimensions function

Recent swtich to variables being stored in structs, xCoil, yCoil, and zCoil in this function were not using values from the struct for some reason.