Function bal_exclude_neighbors(uint16_t, uint16_t, uint16_t)

Function Documentation

uint16_t bal_exclude_neighbors(uint16_t indexes[], uint16_t count, uint16_t cells[])

Exclude adjacent cells to work around an hardware limitation on Fenice.

Return
amount of cells to be discharged
Parameters
  • indexes: output array of cell’s indexes that need to be discharged
  • count: amount of voltages
  • cells: output array of cell’s indexes that need to be discharged