Homeregenerative braking