by monitoring positions of pistons or cranks