diff --git a/src/comm/MockLink.cc b/src/comm/MockLink.cc index a91506a2e8302e7ca81f6f264a8e085efcbf78ae..f25d15beede022c56abbc3531903639d2ef7ca85 100644 --- a/src/comm/MockLink.cc +++ b/src/comm/MockLink.cc @@ -158,7 +158,10 @@ void MockLink::_run1HzTasks(void) if (_mavlinkStarted && _connected) { _sendHeartBeat(); _sendVibration(); - _sendRCChannels(); + if (!qgcApp()->runningUnitTests()) { + // Sending RC Channels during unit test breaks RC tests which does it's own RC simulation + _sendRCChannels(); + } if (_sendHomePositionDelayCount > 0) { // We delay home position a bit to be more realistic _sendHomePositionDelayCount--;