← Back to problems rotation only

Mars Rover Sound Localization

AeroSpace • shortest arc • compass degrees

The rover can spin in place. Both numbers are compass degrees: 0 is north, and clockwise is positive. Normalize sound − heading into [-180, 180] and turn that way. Positive is CW. A tie of exactly 180° comes out CCW. If a microphone already reports an angle relative to the nose, do not subtract the heading a second time.

TimeO(1)
SpaceO(1)
Step0/0
Ready
Press Play or Step. Cyan is the nose. Amber is the sound.