Modified error in complementary filter