The study of the transient combustion modes is one of the key topics when considering the safety of space flights. Control of detonation onset has a dual application. First, the search for ways to prevent detonation modes in case of accidental fuel releases for fire safety issues of launch systems and the avoidance of accidents with rocket engines at a launch site and in near-Earth space. Second, the study of detonation and the possibility of using it to create propulsion systems based on detonation combustion of fuel. The paper shows the effect of the presence of spatial non-uniformities on the promotion of detonation in the chamber. Various geometries with and without obstacles and cavities are considered. It is demonstrated that the presence of obstacles accelerates the transition to the detonation process on the one hand, but on the other hand the presence of obstacles in combustion chamber could be the cause of incidental uncontrolled ignition, which ruins stable operation of an engine. The results of theoretical studies of the working cycle of the combustion chamber of a pulsed detonation engine are presented. Theoretical estimates for thrust characteristics are obtained.