set_ignore_invalid_angles#
- Compass.set_ignore_invalid_angles(val)#
Set how to deal with invalid rotation-angles.
If True the compass will always (silently) use the last valid rotation-angle in case the correct angle could not be determined.
If False (the default), a warning will be issued in case the angle could not be determined, and a red border will be drawn around the compass to indicate that it might not point in the right direction.
- Parameters:
val (bool) – ignore invalid rotation angles.