Skip to content

Commit 55bbd67

Browse files
authored
Merge pull request #419 from IKhonakhbeeva/gyro
Small fixes with waitGyro parameters
2 parents 26d3922 + c7f0f81 commit 55bbd67

File tree

4 files changed

+27
-15
lines changed

4 files changed

+27
-15
lines changed

plugins/robots/editor/trik/generated/elements.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1986,14 +1986,14 @@
19861986
setName("TrikWaitForGyroscope");
19871987
setFriendlyName(QObject::tr("Wait for Gyroscope"));
19881988
setDiagram("RobotsDiagram");
1989-
setDescription(QObject::tr("Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the 'Degrees/sec' parameter value."));
1989+
setDescription(QObject::tr("Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the 'milliDegrees/sec' parameter value."));
19901990
qReal::LabelProperties label_1(1, 1.1, 1.2, "Degrees", false, 0);
19911991
label_1.setBackground(Qt::white);
19921992
label_1.setScalingX(false);
19931993
label_1.setScalingY(false);
19941994
label_1.setHard(false);
19951995
label_1.setPlainTextMode(false);
1996-
label_1.setPrefix(QObject::tr("Degrees/sec:"));
1996+
label_1.setPrefix(QObject::tr("milliDegrees/sec:"));
19971997
addLabel(label_1);
19981998
qReal::LabelProperties label_2(2, 1.1, 1.8, "Sign", false, 0);
19991999
label_2.setBackground(Qt::white);
@@ -2026,7 +2026,7 @@
20262026

20272027
void initProperties()
20282028
{
2029-
addProperty("Degrees", "string", QObject::tr("0"), QObject::tr("Degrees/sec"), QObject::tr(""), false);
2029+
addProperty("Degrees", "string", QObject::tr("0"), QObject::tr("milliDegrees/sec"), QObject::tr(""), false);
20302030
addProperty("Sign", "DistanceSign", QString::fromUtf8("greater"), QObject::tr("Sign"), QObject::tr(""), false);
20312031
}
20322032
};

plugins/robots/editor/trik/trikMetamodel.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,21 +621,21 @@
621621
</logic>
622622
</node>
623623

624-
<node displayedName="Wait for Gyroscope" path="101, 106 : 212, 106 : | 156, 183 : 156, 107 : | 12, 183 : 156, 183 : | 12, 12 : 12, 183 : | 12, 12 : 164, 12 : " name="TrikWaitForGyroscope" description="Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the 'Degrees/sec' parameter value.">
624+
<node displayedName="Wait for Gyroscope" path="101, 106 : 212, 106 : | 156, 183 : 156, 107 : | 12, 183 : 156, 183 : | 12, 12 : 12, 183 : | 12, 12 : 164, 12 : " name="TrikWaitForGyroscope" description="Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the 'milliDegrees/sec' parameter value.">
625625
<graphics>
626626
<picture sizex="50" sizey="50">
627627
<image y1="0" name="images/waitForGyroscopeBlock.png" x1="0" y2="50" x2="50"/>
628628
</picture>
629629
<labels>
630-
<label x="55" y="60" textBinded="Degrees" prefix="Degrees/sec:"/>
630+
<label x="55" y="60" textBinded="Degrees" prefix="milliDegrees/sec:"/>
631631
<label x="55" y="90" textBinded="Sign" prefix="Sign:"/>
632632
</labels>
633633
<nonResizeable/>
634634
</graphics>
635635
<logic>
636636
<container/>
637637
<properties>
638-
<property displayedName="Degrees/sec" type="string" name="Degrees">
638+
<property displayedName="milliDegrees/sec" type="string" name="Degrees">
639639
<default>0</default>
640640
</property>
641641
<property displayedName="Sign" type="DistanceSign" name="Sign">

qrtranslations/fr/plugins/robots/trikMetamodel_fr.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,17 +904,17 @@
904904
</message>
905905
<message>
906906
<location line="+2"/>
907-
<source>Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the &apos;Degrees/sec&apos; parameter value.</source>
907+
<source>Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the &apos;milliDegrees/sec&apos; parameter value.</source>
908908
<translation type="unfinished"></translation>
909909
</message>
910910
<message>
911911
<location line="+7"/>
912-
<source>Degrees/sec:</source>
912+
<source>milliDegrees/sec:</source>
913913
<translation type="unfinished"></translation>
914914
</message>
915915
<message>
916916
<location line="+33"/>
917-
<source>Degrees/sec</source>
917+
<source>milliDegrees/sec</source>
918918
<translation type="unfinished"></translation>
919919
</message>
920920
<message>

qrtranslations/ru/plugins/robots/trikMetamodel_ru.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,12 @@
477477
<message>
478478
<location line="-739"/>
479479
<source>Calibrate gyroscope</source>
480-
<translation type="unfinished"></translation>
480+
<translation>Калибровка гироскопа</translation>
481481
</message>
482482
<message>
483483
<location line="+2"/>
484484
<source>Sets gyroscope&apos;s angle to zero in current position.</source>
485-
<translation type="unfinished"></translation>
485+
<translation>Устанавливает гироскоп в 0 в текущей позиции.</translation>
486486
</message>
487487
<message>
488488
<location line="+572"/>
@@ -904,18 +904,30 @@
904904
</message>
905905
<message>
906906
<location line="+2"/>
907+
<source>Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the &apos;milliDegrees/sec&apos; parameter value.</source>
908+
<translation>Ждать, пока значение, возвращаемое гиродатчиком на указанном порту, не будет сравнимо с указанным в значении параметра &apos;миллиГрадусы/сек&apos;.</translation>
909+
</message>
910+
<message>
907911
<source>Waits till the value returned by the gyroscope on the given port will be greater or less than the given in the &apos;Degrees/sec&apos; parameter value.</source>
908-
<translation>Ждать, пока значение, возвращаемое гиродатчиком на указанном порту, не будет сравнимо с указанным в значении параметра &apos;Градусы/сек&apos;.</translation>
912+
<translation type="vanished">Ждать, пока значение, возвращаемое гиродатчиком на указанном порту, не будет сравнимо с указанным в значении параметра &apos;Градусы/сек&apos;.</translation>
909913
</message>
910914
<message>
911915
<location line="+7"/>
912-
<source>Degrees/sec:</source>
913-
<translation>Градусы/сек:</translation>
916+
<source>milliDegrees/sec:</source>
917+
<translation>миллиГрадусы/сек:</translation>
914918
</message>
915919
<message>
916920
<location line="+33"/>
921+
<source>milliDegrees/sec</source>
922+
<translation>миллиГрадусы/сек</translation>
923+
</message>
924+
<message>
925+
<source>Degrees/sec:</source>
926+
<translation type="vanished">Градусы/сек:</translation>
927+
</message>
928+
<message>
917929
<source>Degrees/sec</source>
918-
<translation>Градусы/сек</translation>
930+
<translation type="vanished">Градусы/сек</translation>
919931
</message>
920932
<message>
921933
<location line="+12"/>

0 commit comments

Comments
 (0)