File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
plugins/robots/common/trikKit/src/blocks Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 6363
6464#include " trikKit/robotModel/parts/trikInfraredSensor.h"
6565#include " trikKit/robotModel/parts/trikSonarSensor.h"
66+ #include < qrkernel/settingsManager.h>
6667
6768using namespace trik ::blocks;
6869using namespace trik ::blocks::details;
@@ -256,8 +257,6 @@ qReal::IdList TrikBlocksFactoryBase::blocksToDisable() const
256257 << id (" TrikWaitForAccelerometer" )
257258 << id (" TrikSystem" )
258259 << id (" TrikWaitForMotion" )
259- << id (" TrikSendMessage" )
260- << id (" TrikWaitForMessage" )
261260 << id (" TrikWaitGamepadButton" )
262261 << id (" TrikWaitPadPress" )
263262 << id (" TrikWaitGamepadWheel" )
@@ -267,6 +266,12 @@ qReal::IdList TrikBlocksFactoryBase::blocksToDisable() const
267266 << id (" TrikStopCamera" )
268267 << id (" TrikStopVideoStreaming" )
269268 ;
269+ if (!qReal::SettingsManager::value (" TRIK2DMailbox" , " " ).toBool ()) {
270+ result
271+ << id (" TrikSendMessage" )
272+ << id (" TrikWaitForMessage" )
273+ ;
274+ }
270275 } else {
271276 result
272277 << id (" TrikCalibrateGyroscope" )
You can’t perform that action at this time.
0 commit comments