At what value (bat_volt) does that battery get so low that it’s not worth running the compressor, but keep the drive train alive?
Anything much below 10 Volts and you’re going to have problems with everything on the robot. The controller will shut down around 8V.
I actually believe that the Robot Controller resets at 7.5 V. However, please realize that the battery voltage depends on amount of load you put on it. As you put more load on the battery, the voltage of the battery decreases temporarily. This is perfectly normal. There will most likely be times during a match, when many of the robot components are running, that the voltage will drop below 10 V. It will probably also come back up to around 11.5 V. So make sure it’s a sustained change before doing anything drastic.
Matt
The constant in the code for battery voltage is only to set the threshold of the low battery light correct? Are there any inputs available for the battery voltage other than custom curcuitry?