Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed filesystem TextLCD
Fork of Projeto_Mecatronico by
Diff: fim_de_curso.h
- Revision:
- 16:be88f7617529
- Parent:
- 12:a50758242f66
- Child:
- 17:2b5d8163b000
diff -r 77fc1156f75a -r be88f7617529 fim_de_curso.h
--- a/fim_de_curso.h Wed May 04 11:51:27 2022 +0000
+++ b/fim_de_curso.h Wed May 04 17:00:42 2022 +0000
@@ -2,24 +2,23 @@
#include "JOG.h"
//Fim de cursos eixo x
-DigitalIn FDC_x1(PA_2);
-DigitalIn FDC_x2(PA_10);
+DigitalIn FDC_x1(PC_10);
+DigitalIn FDC_x2(PC_12);
//Fim de cursos eixo y
-DigitalIn FDC_y1(PA_8);
-DigitalIn FDC_y2(PA_9);
+DigitalIn FDC_y1(PA_13);
+DigitalIn FDC_y2(PA_14);
//Fim de cursos eixo z
-DigitalIn FDC_z1(PC_7);
-DigitalIn FDC_z2(PB_6);
+DigitalIn FDC_z1(PB_7);
+DigitalIn FDC_z2(PC_13);
void fim_de_curso()
{
- FDC_x1.mode(PullUp);
- FDC_x2.mode(PullUp);
- FDC_y1.mode(PullUp);
- FDC_y2.mode(PullUp);
- FDC_z1.mode(PullUp);
- FDC_z2.mode(PullUp);
- float tempo = 0.5; // "tempo"
+ // FDC_x1.mode(PullUp);
+ // FDC_x2.mode(PullUp);
+ // FDC_y1.mode(PullUp);
+ // FDC_y2.mode(PullUp);
+ // FDC_z1.mode(PullUp);
+ // FDC_z2.mode(PullUp);
while (1)
{
@@ -27,7 +26,6 @@
{
string estado = "x_menos" ;
jog_FDC(estado);
- int movimentar_x = 0;
}
if (FDC_x2 == 0)
@@ -40,7 +38,6 @@
{
string estado = "y_menos";
jog_FDC(estado);
- int movimentar_y = 0;
}
if (FDC_y2 == 0)
@@ -53,7 +50,6 @@
{
string estado = "z_menos";
jog_FDC(estado);
- int movimentar_z = 0;
}
if (FDC_z2 == 0)
