zacmortimer:
I have a battery, the motors and esc run fine, ive tested them, it's more coding that i'm stuck with.
^ Have you been able to get the motors spinning? I can write some code to help you with that if you want. 
zacmortimer:
I'm building an underwater submarine, so for it to go forward and back, it needs to be able to go in reverse and forward without changing any of the cables. So when the joystick is completely forward, the motor will go one way, and when the joystick is completely back, it will go another way. And when it's in the middle it will be idle.
^ This may be difficult, but it is possible. The easiest way I see it is that a homemade circuit acts as an interface between the ESC and the motor via different relays. The circuit would also take in data from the Arduino. Here is the logic of the ESC-motor interfacing device:
Input to the circuit would be digital (either 5V or 0V). If the Arduino gives it a 5V, the circuit will drive a network of relays to ensure the correct connection of the 3 phase wires that will cause the motors to spin one way. If the circuit sees 0V from the Arduino, the relays will be driven so that the motors run in reverse (i.e. the 3 phase connections are electrically rearranged via relays). See the attached schematic.
zacmortimer:
Just the power cables. I'll have 3 or 4 esc's so to avoid having to have more 3 batteries can i just solder these cables together?
^ While this is possible, I wouldn't advise it. Here's why: You could EASILY discharge the battery too fast, causing the battery to either catch fire or literally explode! (especially if your battery is a LiPo). EVEN if the battery doesn't explode, you will only have a minute or so of battery life (so why not spend a little extra?
)
zacmortimer:
Because it will be going underwater wireless connections won't work. Can i send the power to the motors down ethernet. Or the signal cables from the esc down to the motor. Basically i'd prefer to keep as many components as i can up above the water and at the controller.
^ Ohhhh, I see now. You know the ESCs are driven like analog servos, right? All the signal they need is a PWM from the on board Arduino. No need for ETH unless the Arduino isn't on board. 20-22 gauge wire will be all you need. As for powering the ESCs, the batteries already do that.
Motor Driving Circuit.pdf (115 KB)