Write a task that monitors the voltage of the two batteries coming into the power board. If the two voltages are within a certain range of each other for a given period of time, connect the batteries in parallel. The battery voltages can be read from the ADC's. The batteries can be connected in parallel by turning on a GPIO connected to a MOSFET gate driver. More specifics can be given once this has been assigned.
Write a task that monitors the voltage of the two batteries coming into the power board. If the two voltages are within a certain range of each other for a given period of time, connect the batteries in parallel. The battery voltages can be read from the ADC's. The batteries can be connected in parallel by turning on a GPIO connected to a MOSFET gate driver. More specifics can be given once this has been assigned.