Skip to content

Commit ba69099

Browse files
committed
Fix colorSensor generation again
1 parent 351418c commit ba69099

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

plugins/robots/common/trikKit/src/robotModel/trikRobotModelBase.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ TrikRobotModelBase::TrikRobotModelBase(const QString &kitId, const QString &robo
9797
addAllowedConnection(PortInfo("ObjectSensorYPort", input, {}, "objectSensorY"), { objectSensorInfo() });
9898
addAllowedConnection(PortInfo("ObjectSensorSizePort", input, {}, "objectSensorSize"), { objectSensorInfo() });
9999

100-
addAllowedConnection(PortInfo("ColorSensorPort", input, {}, "colorSensor"), { colorSensorInfo() });
100+
addAllowedConnection(PortInfo("ColorSensorPort", input, {}, "colorSensor"
101+
, PortInfo::ReservedVariableType::vector), { colorSensorInfo() });
101102

102103
addAllowedConnection(PortInfo("ShellPort", output), { shellInfo() });
103104

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
brick.colorSensor("video2").read(2, 2)
1+
brick.colorSensor("video2").read(2, 2)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
brick.colorSensor("video2").read(2, 2)
1+
brick.colorSensor("video2").read(2, 2)

qrtranslations/fr/plugins/robots/trikKit_fr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<name>trik::robotModel::TrikRobotModelBase</name>
1414
<message>
1515
<location filename="../../../../plugins/robots/common/trikKit/src/robotModel/trikRobotModelBase.cpp" line="+91"/>
16-
<location line="+196"/>
16+
<location line="+197"/>
1717
<source>Video 2</source>
1818
<translation type="unfinished"></translation>
1919
</message>

qrtranslations/ru/plugins/robots/trikKit_ru.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<name>trik::robotModel::TrikRobotModelBase</name>
1414
<message>
1515
<location filename="../../../../plugins/robots/common/trikKit/src/robotModel/trikRobotModelBase.cpp" line="+91"/>
16-
<location line="+196"/>
16+
<location line="+197"/>
1717
<source>Video 2</source>
1818
<translation type="unfinished"></translation>
1919
</message>

0 commit comments

Comments
 (0)