possible tilt sensors
Best thing to do is do a full cycle of your roof manually, ie open it and close it again, or close it, open it and close it again and that will reset all sensors, should work then.
If that doesn't work it could be mechanical failure, in which case diagnostics will be needed