I'm trying to create an android application for indoor mapping. So all I want is to detect when a user has changed the floor level using sensors(detection of the current level having as reference the level 0 of building). I assumed that the easiest way would be the detecting of the movement on an escalator or elevator. Available sensors:
-Accelerometer -Gyroscope -Magnetometer -Gravity sensor -Linear acceleration -Rotation sensor
I have searched that a good way is to combine the accelerometer and the gyroscope, but can that be applied in practice when user is on a slow escalator? Theoretically if I know that the escalator deliver a client from a level to another in 10 seconds, the smartphone can record some specific sensor changes and to estimate that the user has changed the build level(upper or lower).