disconnecting the battery clears the short term learned adjustments and fault codes but the adjustments stored in the eeprom memory (throttle position, phonic wheel, long term adjustments) will be retained.
You will need diagnostic commands and the proper equipment to reset these values.