Browse Source

No RC simulation while running unit tests

QGC4.4
Don Gagne 9 years ago
parent
commit
c2544df79c
  1. 5
      src/comm/MockLink.cc

5
src/comm/MockLink.cc

@ -158,7 +158,10 @@ void MockLink::_run1HzTasks(void) @@ -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--;

Loading…
Cancel
Save