Commit b38630b3 authored by Michael Carpenter's avatar Michael Carpenter

Added 250ms delay between sending data requests to increase probability of it working.

parent 44af0a93
...@@ -53,11 +53,17 @@ ArduPilotMegaMAV::ArduPilotMegaMAV(MAVLinkProtocol* mavlink, int id) : ...@@ -53,11 +53,17 @@ ArduPilotMegaMAV::ArduPilotMegaMAV(MAVLinkProtocol* mavlink, int id) :
void ArduPilotMegaMAV::sendTxRequests() void ArduPilotMegaMAV::sendTxRequests()
{ {
enableExtendedSystemStatusTransmission(2); enableExtendedSystemStatusTransmission(2);
QGC::SLEEP::msleep(250);
enablePositionTransmission(3); enablePositionTransmission(3);
QGC::SLEEP::msleep(250);
enableExtra1Transmission(10); enableExtra1Transmission(10);
QGC::SLEEP::msleep(250);
enableExtra2Transmission(10); enableExtra2Transmission(10);
QGC::SLEEP::msleep(250);
enableExtra3Transmission(2); enableExtra3Transmission(2);
QGC::SLEEP::msleep(250);
enableRawSensorDataTransmission(2); enableRawSensorDataTransmission(2);
QGC::SLEEP::msleep(250);
enableRCChannelDataTransmission(2); enableRCChannelDataTransmission(2);
} }
......
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