The capacitor is in parallel, not series, so it doesnt have any say in which way the current is flowing. Im thinking that perhaps you wired your vreg in reverse also or else you definitely wouldnt have a working robot. Are you using the 6v battery pack? or the other batter setup?