mirror of https://github.com/ArduPilot/ardupilot
Copter: fix for new compass API
This commit is contained in:
parent
e362b4fc04
commit
64ce1e0381
|
@ -1492,7 +1492,8 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|||
ins.set_accel(0, accels);
|
||||
|
||||
barometer.setHIL(packet.alt*0.001f);
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue