mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
Rover: use new HIL compass API
This commit is contained in:
parent
f72dd560cb
commit
5594e4d9bc
@ -1697,13 +1697,14 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
||||
ins.set_gyro(gyros);
|
||||
|
||||
ins.set_accel(accels);
|
||||
compass.setHIL(packet.roll, packet.pitch, packet.yaw);
|
||||
|
||||
#if HIL_MODE == HIL_MODE_ATTITUDE
|
||||
// set AHRS hil sensor
|
||||
ahrs.setHil(packet.roll,packet.pitch,packet.yaw,packet.rollspeed,
|
||||
packet.pitchspeed,packet.yawspeed);
|
||||
#endif
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
#endif // HIL_MODE
|
||||
|
Loading…
Reference in New Issue
Block a user