They definitely could do it. The Model X has that capability for the falcon wing doors. It senses a low ceiling and keeps the doors from hitting it. But it's probably too expensive to put the sensors into the Model Y.How cool would it be if they could make that location dependent, like Sentry Mode and Folding Mirrors and Locking Doors