It's an 'upside down' detector for old sailing ships. [Pirates of t he Caribbean style] If the ball is resting nice and cozy in the hole in the plate then the ship is 'right side up'. If the ball is resting against the cage the ship is 'upside down'.
Abusive comment hidden.
(Show it anyway.)