Somethings to bear in mind.
1) If you have a Mavic of some form or other it is likely that the default setting for the CSC response will NOT allow the motors to stop in mid air UNLESS THE DRONE THINKS it has had some form of emergency. (What constitutes an "Emergency"??????????)
In the absence of an "Emergency" all that will happen is that the drone will obey the joystick commands of the CSC position, most likely, max yaw rate clockwise combined with max reverse and max left. Depending on what flight mode the drone is in this could be vicious and, indoors, lead to a real emergency.
I would suggest this IS NOT, in ANY FLIGHT MODE, something to practise indoors with a
flying drone.
If you want to try it indoors take the props off, hand hold the drone and wobble it whilst applying the CSC with the other hand. The wobbling simulates the drone moving slightly as it would in flight. If the drone is stationary i.e. not wobbled, the CSC will stop the motors, full stop.
In order for the CSC to shut the motors down in mid air at SOLELY your command it is likely that a mavic type drone will have to have the response to the CSC set to the alternative of default.
2) Even with the CSC response changed so that stopping the motors is solely at your command the drone will still obey the joystick position commands until the motors stop, for the Mavic Mini this takes about 2 to 3 seconds, so, again, the drone will have yaw and horizontal motion. Which again is not something for indoor flight.
Have a look at
With the CSC response set to the default I have brought a mavic mini down, UNDER PERFECT CONTROL, from 100m+ and it even automatically slowed its descent as the ground came within range of the downward looking sensor. The descent was/is a helix. When I released the joysticks the drone hovered. I used the slowest flight mode for this experiment.
I did switch the Mavic Mini's CSC response to anytime and, in the slowest flight, initiated a CSC at a height of about 6ft. The motors stopped when it was between 2ft and 18" off the ground and it fell onto grass with no damage expected or caused.