Replay: fixed compass readings on rover

This commit is contained in:
Andrew Tridgell 2014-03-06 21:40:08 +11:00
parent 5dfd9b074e
commit 330728cd80

View File

@ -279,7 +279,8 @@ static void read_sensors(uint8_t type)
ins.set_accel(0, ins.get_accel());
}
} else if ((type == LOG_PLANE_COMPASS_MSG && LogReader.vehicle == LogReader::VEHICLE_PLANE) ||
(type == LOG_COPTER_COMPASS_MSG && LogReader.vehicle == LogReader::VEHICLE_COPTER)) {
(type == LOG_COPTER_COMPASS_MSG && LogReader.vehicle == LogReader::VEHICLE_COPTER) ||
(type == LOG_ROVER_COMPASS_MSG && LogReader.vehicle == LogReader::VEHICLE_ROVER)) {
compass.read();
} else if (type == LOG_PLANE_AIRSPEED_MSG && LogReader.vehicle == LogReader::VEHICLE_PLANE) {
ahrs.set_airspeed(&airspeed);