Creación e implementación del código del robot

Los proyectos del robot deben compilarse («construirse») e implementarse para que puedan ejecutarse en la roboRIO. Dado que el código no se compila de forma inicial en el controlador del robot, esto se conoce como «cross-compilation.»

Para construir e implementar un proyecto de robot, realice una de las siguientes acciones:

  1. Abra la paleta de comandos e introduzca / seleccione «Build Robot Code»

  2. Abra el menú de acceso directo indicado por las elipses en la esquina superior derecha de la ventana de VS Code y seleccione «Build Robot Code»

  3. Haga clic con el botón derecho en el archivo build.gradle en la jerarquía del proyecto y seleccione» Build Robot Code»

../../../_images/building-code-options.png

Deploy robot code by selecting «Deploy Robot Code» from any of the three locations from the previous instructions. That will build (if necessary) and deploy the robot program to the roboRIO.

Advertencia

Avoid powering off the robot while deploying robot code. Interrupting the deployment process can corrupt the roboRIO filesystem and prevent your code from working until the roboRIO is re-imaged.

If successful, we will see a «Build Successful» message (1) and the RioLog will open with the console output from the robot program as it runs (2).

../../../_images/build-successful.png