The battery is good, 24 volts. I had the generator bench tested twice at a reputable repair shop. The first time they checked it out and said it worked fine, but when I took it home it didn't work at all when I tried to use it. Because they told me the generator was good I replaced the voltage regulator. That didn't do anything and when I tested the generator by grounding the armature I realized it was not the voltage regulator at all. When I took it back to the same shop he took it apart and put it back together, bench tested it and it worked. He said it was a bad ground, but I don't think he knew for sure why it started working. I took it home and it worked for one day and then quit.
So here's the problem: when I idle the dozer the generator puts out 1.5 volts and when I run it at high RPM the voltage goes up to 5 volts.