From c2544df79c71f0d6df82630805c938810482093d Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Mon, 6 Jun 2016 19:34:55 -0700 Subject: [PATCH] No RC simulation while running unit tests --- src/comm/MockLink.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comm/MockLink.cc b/src/comm/MockLink.cc index a91506a2e..f25d15bee 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--; -- 2.22.0