215 lines
7.4 KiB
Plaintext
215 lines
7.4 KiB
Plaintext
# Copyright (C) 2016 Free Software Foundation, Inc.
|
|
# This file is distributed under the same license as the PACKAGE package.
|
|
# José Robson Mariano Alves <jose.alves@ifto.edu.br>, 2018.
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: colobot-data 0.1.7\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: DATE\n"
|
|
"PO-Revision-Date: 2018-03-11 16:57+0100\n"
|
|
"Last-Translator: José Robson Mariano Alves <jose.alves@ifto.edu.br>\n"
|
|
"Language: pt_BR\n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: 8bit\n"
|
|
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
"X-Generator: Lokalize 2.0\n"
|
|
|
|
#. type: Title-text
|
|
#: ../scene.txt:1
|
|
#, no-wrap
|
|
msgid "Remote control #2"
|
|
msgstr "Télécommande #2"
|
|
|
|
#. type: Resume-text
|
|
#: ../scene.txt:2
|
|
#, no-wrap
|
|
msgid "Remote control a robot using an information exchange post, so it will pass over the 6 blue waypoints."
|
|
msgstr "Télécommandez un robot par le biais d'une borne d'information."
|
|
|
|
#. type: ScriptName-text
|
|
#: ../scene.txt:3
|
|
#, no-wrap
|
|
msgid "remote"
|
|
msgstr "Remote"
|
|
|
|
#. type: \b; header
|
|
#: ../help/help.E.txt:1
|
|
#, no-wrap
|
|
msgid "Exercise"
|
|
msgstr "Exercice"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:2
|
|
#, no-wrap
|
|
msgid ""
|
|
"Remote control a robot using an <a object|exchange>information exchange post</a>, so it will pass over the 6 blue waypoints.\n"
|
|
"The main actors of this exercise are:"
|
|
msgstr "Télécommandez un robot par le biais d'une <a object|exchange>borne d'information</a> pour qu'il passe par les 6 croix bleues. Les 3 acteurs principaux de cet exercice sont:"
|
|
|
|
#. type: Bullet: '1)'
|
|
#: ../help/help.E.txt:5
|
|
#, no-wrap
|
|
msgid "A <a object|botgr>wheeled grabber</a> robot without an energy cell. This is the master you have to program."
|
|
msgstr "Un <a object|botgr>robot déménageur</a> sans pile, donc immobile. C'est lui l'émetteur que vous devez programmer."
|
|
|
|
#. type: Bullet: '2)'
|
|
#: ../help/help.E.txt:6
|
|
#, no-wrap
|
|
msgid "An <a object|exchange>information exchange post</a> that receives information from the master and then transmits it to the slave."
|
|
msgstr "Une <a object|exchange>borne d'information</a> qui reçoit des informations de l'émetteur puis les transmet au récepteur."
|
|
|
|
#. type: Bullet: '3)'
|
|
#: ../help/help.E.txt:7
|
|
#, no-wrap
|
|
msgid "A <a object|bottr>practice bot</a> which waits for orders from the exchange post. This robot has already been programmed."
|
|
msgstr "Un <a object|bottr>robot d'entraînement</a> qui attend les ordres de la borne. Ce robot est déjà programmé."
|
|
|
|
#. type: Image filename
|
|
#: ../help/help.E.txt:9
|
|
#, no-wrap
|
|
msgid "tremot2a"
|
|
msgstr "tremot2a"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:10
|
|
#, no-wrap
|
|
msgid "An information exchange post stores \"name/value\" couples. To control the \"slave\" robot we use two couples:"
|
|
msgstr "Une borne stocke des couples \"nom/valeur\". Pour commander le robot esclave, nous avons choisi d'utiliser deux couples:"
|
|
|
|
#. type: Bullet: '1)'
|
|
#: ../help/help.E.txt:12
|
|
#, no-wrap
|
|
msgid "name=\"order\", value=order number"
|
|
msgstr "nom=\"order\", valeur=numéro de l'opération à effectuer"
|
|
|
|
#. type: Bullet: '2)'
|
|
#: ../help/help.E.txt:13
|
|
#, no-wrap
|
|
msgid "nom=\"param\", valuer=parameter for the operation"
|
|
msgstr "nom=\"param\", valeur=paramètre de l'opération"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:15
|
|
#, no-wrap
|
|
msgid ""
|
|
"Order #1 means \"move\" and order #2 means \"turn\". The parameter is the distance to move or the turning angle. For example to make the slave move 20 meters write:\n"
|
|
"<c/><s/>\t<a cbot|send>send</a>(\"order\", 1, 100); // order \"move\""
|
|
msgstr ""
|
|
"L'ordre #1 signifie \"move\" et l'ordre #2 signifie \"turn\". Le paramètre est la distance à avancer ou l'angle à tourner. Par exemple, pour demander au robot esclave d'avancer de 20 mètres, il faut écrire:\n"
|
|
"<c/><s/>\tsend(\"order\", 1, 100); // order \"move\""
|
|
|
|
#. type: Source code
|
|
#: ../help/help.E.txt:17
|
|
#, no-wrap
|
|
msgid "\t<a cbot|send>send</a>(\"param\", 20, 100); // distance 20 meters"
|
|
msgstr "\tsend(\"param\", 20, 100); // distance"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:19
|
|
#, no-wrap
|
|
msgid ""
|
|
"These two instruction send following 2 pieces of information to the exchange post:\n"
|
|
"<c/> order=1\n"
|
|
" param=20"
|
|
msgstr ""
|
|
"Ces deux instructions <code><a cbot|send>send</a></code> envoient les deux informations suivantes dans la borne:\n"
|
|
"<c/> order=1\n"
|
|
" param=20"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:23
|
|
#, no-wrap
|
|
msgid ""
|
|
"The slave robot waits for an order and executes it. Once the order has been executed by the slave, it removes the order from the exchange post. Once an order has been sent, the master must wait for the slave finishing the order before sending the next order. This is done by testing if the order is still inside the exchange post. Just write:\n"
|
|
"<c/><s/>\twhile ( <a cbot|testinfo>testinfo</a>(\"order\", 100) ) // wait for end of work"
|
|
msgstr ""
|
|
"Le robot esclave attend un ordre puis l'exécute. Lorsque l'exécution est terminée, il supprime l'ordre de la borne. Après avoir envoyé un ordre, le robot émetteur doit donc attendre la disparition de l'ordre dans la borne, signe que l'esclave a terminé sa tâche. Cela s'écrit ainsi, avec l'instruction <code><a cbot|testinfo>testinfo</a></code>:\n"
|
|
"<c/><s/>\twhile ( testinfo(\"order\", 100) ) // wait end of work"
|
|
|
|
#. type: Source code
|
|
#: ../help/help.E.txt:25
|
|
#, no-wrap
|
|
msgid ""
|
|
"\t{\n"
|
|
"\t\twait(1);\n"
|
|
"\t}"
|
|
msgstr ""
|
|
"\t{\n"
|
|
"\t\twait(1);\n"
|
|
"\t}"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:29
|
|
#, no-wrap
|
|
msgid ""
|
|
"As we must give more than one order its most convenient to write a <a cbot|function>function</a> <code>SendToPost</code>, that sends the order and wait for its completion:\n"
|
|
"<c/><s/>void object::SendToPost(float order, float param)"
|
|
msgstr ""
|
|
"Comme il faudra donner plusieurs ordres, il est plus simple de créer une <a cbot|function>fonction</a> <code>SendToPost</code> qui se charge d'envoyer un ordre puis d'attendre son exécution:\n"
|
|
"<c/><s/>void object::SendToPost(float order, float param)"
|
|
|
|
#. type: Source code
|
|
#: ../help/help.E.txt:31
|
|
#, no-wrap
|
|
msgid ""
|
|
"{\n"
|
|
"\tsend(\"param\", param, 100); // send the parameter\n"
|
|
"\tsend(\"order\", order, 100); // send the order\n"
|
|
"\n"
|
|
"\twhile ( testinfo(\"order\", 100) ) // wait for end of work\n"
|
|
"\t{\n"
|
|
"\t\twait(1);\n"
|
|
"\t}\n"
|
|
"}"
|
|
msgstr ""
|
|
"{\n"
|
|
"\tsend(\"param\", param, 100); // send the parameter\n"
|
|
"\tsend(\"order\", order, 100); // send the order\n"
|
|
"\n"
|
|
"\twhile ( testinfo(\"order\", 100) ) // wait end of work\n"
|
|
"\t{\n"
|
|
"\t\twait(1);\n"
|
|
"\t}\n"
|
|
"}"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:41
|
|
#, no-wrap
|
|
msgid ""
|
|
"To move forward by 20 meters, you must write in the main program:\n"
|
|
"<c/><s/>\tSendToPost(1, 20); // move(20);"
|
|
msgstr ""
|
|
"Pour donner l'ordre d'avancer de 20 mètres, il suffit alors d'écrire, dans le programme principal:\n"
|
|
"<c/><s/>\tSendToPost(1, 20); // move(20);"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:44
|
|
#, no-wrap
|
|
msgid "This is the route the robot must travel through:"
|
|
msgstr "Voilà le parcours que le robot esclave doit effectuer:"
|
|
|
|
#. type: Image filename
|
|
#: ../help/help.E.txt:46
|
|
#, no-wrap
|
|
msgid "tremot2b"
|
|
msgstr "tremot2b"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:47
|
|
#, no-wrap
|
|
msgid "It's up to you to finish the programming."
|
|
msgstr "A vous de terminer le programme ..."
|
|
|
|
#. type: \t; header
|
|
#: ../help/help.E.txt:49
|
|
#, no-wrap
|
|
msgid "See also"
|
|
msgstr "Voir aussi"
|
|
|
|
#. type: Plain text
|
|
#: ../help/help.E.txt:50
|
|
#, no-wrap
|
|
msgid "<a cbot>Programming</a>, <a cbot|type>types</a> and <a cbot|category>categories</a>."
|
|
msgstr "<a tpyta>Exercice précédent</a> et <a cbot>programmation</a>."
|