Programming your Tesla would mean that you upload software that your car runs. I think you can't do that, but you should be allowed to.
As it's a matter of public safety, and as part of a right to repair, all of the software that runs in cars should be open source, and should be able to be updated by the owner.