Rover: fix for new compass API

This commit is contained in:
Andrew Tridgell 2015-05-15 14:04:51 +10:00
parent 64ce1e0381
commit 474ee2a11e

View File

@ -1150,7 +1150,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
ins.set_gyro(0, gyros);
ins.set_accel(0, accels);
compass.setHIL(packet.roll, packet.pitch, packet.yaw);
compass.setHIL(0, packet.roll, packet.pitch, packet.yaw);
compass.setHIL(1, packet.roll, packet.pitch, packet.yaw);
break;
}
#endif // HIL_MODE