It sounds like a wiring issue more than motor tuning. It could be that some of your wires are not connected, or only connecting intermittently, or some of the connections are crossed. Putting together the G540 requires some crimping of pins onto wires that needs to be done right. Post pictures showing all the wiring connections, and maybe someone here will be able to spot an error.