DC motor control with PID

i will do this later,if i success[ch65292]i'll show my pictures.
i got a question ,why do you put the battery on the top[ch65311]
i think that if you put it on the bottom,you can controll the balance better.