Magnetometer sensor calibration for AR experience.
Systems, methods and articles of manufacture relating to calibration of a magnetometer in an electronic device suitable for use in an augmented reality (AR) and/or virtual reality (VR) video game. An electronic video game device includes a magnetometer. A prompt is displayed in the video game requesting a user-performed first gameplay motion using the electronic video game device where the first gameplay motion is a pre-defined motion used for calibrating the magnetometer. A first plurality of measurements is received from the magnetometer relating to a magnetic field in a physical gameplay environment, where the first plurality of measurements is taken by the magnetometer during the first gameplay motion. The first plurality of measurements is analyzed to detect a magnetic bias in the magnetometer. The magnetometer is calibrated to offset the magnetic bias.
BACKGROUNDField of the Invention(1) The present disclosure generally relates to calibration of a magnetometer in an electronic device suitable for use in an augmented reality (AR) and/or virtual reality (VR) system.Description of the Related Art(2) Computer graphics technology has significantly progressed since the first video games were developed. Relatively inexpensive 3D graphics engines now provide nearly photo-realistic interactive gameplay on hand-held video game, home video game, and personal computer hardware platforms costing only a few hundred dollars. These video game systems typically include a hand-held controller, game controller, or, in the case of a hand-held video game platform, an integrated controller. A user interacts with the controller to send commands or other instructions to the video game system to control a video game or other simulation. For example, the controller may include a joystick and buttons operated by the user.(3) While video games allow the user to interact directly with the video game system, such interactions primarily influence the graphical depiction shown on the video game device (or on a connected display), and rarely influence any other objects outside of the virtual world. That is, a user may specify an input to the video game system, indicating that the user's avatar should perform a jump action, and in response the video game system could display the user's avatar jumping. However, such interactions are typically limited to the
1. A method for calibrating a magnetometer in an electronic video game device, the method comprising: displaying a prompt in a video game requesting a user-performed first gameplay motion using the electronic video game device, wherein the user-performed first gameplay motion is a pre-defined motion used for calibrating the magnetometer; receiving a first plurality of measurements from the magnetometer relating to a magnetic field in a physical gameplay environment, wherein the first plurality of measurements is taken by the magnetometer during the user-performed first gameplay motion; analyzing the first plurality of measurements using a calibration threshold to detect a magnetic bias in the magnetometer; changing the calibration threshold based on a comparison of the first plurality of measurements to a standard model, wherein increasing the calibration threshold increases an amount of required calibration of the magnetometer and decreasing the calibration threshold decreases an amount of required calibration of the magnetometer; and calibrating the magnetometer to offset the magnetic bias.
8. A computer program product for calibrating a magnetometer in an electronic video game device, the computer program product comprising: a non-transitory computer-readable storage medium having computer-readable program code embodied therewith, wherein the code, when executed by a processor, performs an operation, the operation comprising: displaying a prompt in a video game requesting a user-performed first gameplay motion using the electronic video game device, wherein the user-performed first gameplay motion is a pre-defined motion used for calibrating the magnetometer; receiving a first plurality of measurements from the magnetometer relating to a magnetic field in a physical gameplay environment, wherein the first plurality of measurements is taken by the magnetometer during the user-performed first gameplay motion; analyzing the first plurality of measurements using a calibration threshold to detect a magnetic bias in the magnetometer; changing the calibration threshold based on a comparison of the first plurality of measurements to a standard model, wherein increasing the calibration threshold increases an amount of required calibration of the magnetometer and decreasing the calibration threshold decreases an amount of required calibration of the magnetometer; and calibrating the magnetometer to offset the magnetic bias.
13. A system, comprising: an electronic video game device, comprising: a magnetometer; a mobile device comprising: a processor; and a memory storing a program, which, when executed on the processor, performs an operation, the operation comprising: displaying a prompt in a video game requesting a user-performed first gameplay motion using the electronic video game device, wherein the user-performed first gameplay motion is a pre-defined motion used for calibrating the magnetometer; receiving a first plurality of measurements from the magnetometer relating to a magnetic field in a physical gameplay environment, wherein the first plurality of measurements is taken by the magnetometer during the user-performed first gameplay motion; analyzing the first plurality of measurements using a calibration threshold to detect a magnetic bias in the magnetometer; changing the calibration threshold based on a comparison of the first plurality of measurements to a standard model, wherein increasing the calibration threshold increases an amount of required calibration of the magnetometer and decreasing the calibration threshold decreases an amount of required calibration of the magnetometer; and calibrating the magnetometer to offset the magnetic bias.