"The helicopter uses counter-rotating coaxial rotors about 1.1 m in diameter. Its payload will be a high resolution downward-looking camera for navigation, landing, and science surveying of the terrain, and a communication system to relay data to the 2020 Mars rover. The inconsistent Mars magnetic field precludes the use of a compass for navigation, so it would require a solar tracker camera integrated to JPL's visual inertial navigation system. Some additional inputs might include gyros, visual odometry, tilt sensors, altimeter, and hazard detectors. It would use solar panels to recharge its batteries."
[0] https://www.nasa.gov/press-release/mars-helicopter-to-fly-on...
[1] https://en.wikipedia.org/wiki/NASA_Mars_Helicopter_Scout