Revert "fixed some bugs."

This reverts commit 215c36cfb68a934f7298eccc265cedee87eaeba4.
Revert "remove tilt compensation option"

This reverts commit 38a44900212c718ad974c56bc4dfba55e8a86dcf.