Robust and precise inclination sensors