There is discussion of a gyrocompass in comments on the page How does Curiosity know how to point and move it's high gain antenna in real time? but so far I don't think there is a hard "Yes" or "No" supported by sources that states unequivocally if these rovers have gyrocompass capability, nor if they do if they use it.
A gyrocompass is a gyroscope that measures precession caused by the slow, steady rotation of the planet on which it sits. A rover would have to "sit still" during this measurement long enough for the precession vector to be calculated, allowing the planet's axis of rotation to be determined relative to the rover's coordinate system. If you know your latitude and longitude you can then determine (at least partially) your body attitude or orientation.
See also:
- What is a gyrocompass and how might one be used by a planetary rover?
- SLR camera gyroscopic stabilization - limited by rotation of the earth?
- How does Image Stabilization / Vibration Reduction work?
Of course if you have historical data, several images and an inclinometer or accelerometer, you can also get that information without a gyrocompass. See this answer:
We can assume that the Surface Attitude Position and Pointing (SAPP) is similar to the one used in the Mars Exploration Rover. Because of that, we can rely on a paper called "Mars Exploration Rover Engineering Cameras"
https://doi.org/10.1029/2003JE002077
It seems that the attitude information is collected from two main sources: an inertial measurement unit and the rover cameras. The IMU provides the rover's roll and pitch angles (Nadir vector) by measuring gravity acceleration. The NAV cameras are used to calculate the Sun position.
Section 3.1 (paragraph 27) from that paper says:
In addition to ground operators on Earth, there are a number of onboard users of the MER cameras. The autonomous navigation (NAV) software uses the cameras to detect hazards during a traverse, and the Surface Attitude Pointing and Positioning (SAPP) system uses the cameras to locate the sun and calculate the rover orientation. Both of these onboard modules can request an image at any time (typically during or immediately after a traverse) and have access to the same functionality as the ground commands, including the ability to send an image to the downlink system. If desired by the operations team, it is possible to downlink all (or a fraction) of the autonomously collected images through the setting of IMG parameters.
So while that answer suggests that these rovers use cameras, plus accelerometers as tiltmeters (nadir vector) I'd like to ask:
Question: Do Curiosity and Perseverance have gyrocompasses? Has any rover had one? If so, what kind and how do they work?