Help with my robot code

Thank you john, i will reply when i'll check the code

Thanks all for replying
The robot have 6 ch relays
Motor type is not matter now
Im using 24v battery to run the robot.
The arduino job is only to open the right relay on the right time.
So 4 relays is for motor
Two relays for positive, negative
And two relays for reverse (negative, positive)
For that i will use 2 digital output from the arduino.
Once it will send 5v signal it will open the relays.

So for example
If i pressed momentary button for half a second and it send pulse of 5v to digital input
Then
Start the motor forward - digital input of forward = HIGH.
if pressed the button again it will shut off all outputs.

If some one can do that i will provide more if