The TVC method allows you to control the flight course of the rocket and return it to an upright position when deflected.
I've seen a lot of videos on YouTube about creating such a system, in particular on the BPS.space channel. But here's the problem, such videos do not talk about how exactly the method of calculating the angles of deviation occurs and how to make this system work.
I want to create a similar system for my rocket model, but I can't find literature or a detailed description, could you recommend books, videos or show examples of formulas for such a system?