Unverified Commit 399663c2 authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #7831 from DonLakeFlyer/HomeStream

Stream HOME_POSITION on ArduPilot
parents 07c1e828 f61ce67f
......@@ -656,6 +656,10 @@ void APMFirmwarePlugin::initializeStreamRates(Vehicle* vehicle)
vehicle->requestDataStream(streamInfo.mavStream, static_cast<uint16_t>(streamInfo.streamRate));
}
}
// Streaming of home position is required for various features in QGC to work correctly. Otherwise relative altitudes
// cannot be calculated correctly.
vehicle->sendMavCommand(MAV_COMP_ID_AUTOPILOT1, MAV_CMD_SET_MESSAGE_INTERVAL, true /* showError */, MAVLINK_MSG_ID_HOME_POSITION, 1000000 /* 1 second interval in usec */);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment