IHM for Industrial Inspection platform Developed for PIMS project / Institut d'Optique Graduate School / LEnsE
Dependents: PIMS_VisionIndus_IHM
Revision 1:a7281be87607, committed 2021-11-19
- Comitter:
- villemejane
- Date:
- Fri Nov 19 11:21:40 2021 +0000
- Parent:
- 0:d70b8a6bed22
- Commit message:
- Vision Industrielle / Carte d'interfacage LEnsE / Institut d'Optique
Changed in this revision
Vision_Indus_IHM.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r d70b8a6bed22 -r a7281be87607 Vision_Indus_IHM.cpp --- a/Vision_Indus_IHM.cpp Sun Nov 14 10:57:13 2021 +0000 +++ b/Vision_Indus_IHM.cpp Fri Nov 19 11:21:40 2021 +0000 @@ -76,28 +76,28 @@ light_on.Draw(COLOR_OFF, 0xFFFFFFFF); /* EFFI-Ring */ ringRGB_R_active = 0; - ringRGB_R_out = 0; + ringRGB_R_out = 1; ringRGB_R.Draw(COLOR_OFF); ringRGB_G_active = 0; - ringRGB_G_out = 0; + ringRGB_G_out = 1; ringRGB_G.Draw(COLOR_OFF); ringRGB_B_active = 0; - ringRGB_B_out = 0; + ringRGB_B_out = 1; ringRGB_B.Draw(COLOR_OFF); /* EFFI-Dome */ dome_active = 0; - dome_out = 0; + dome_out = 1; dome_W.Draw(COLOR_OFF); /* EFFI-Rlla */ rasant_active = 0; - rasant_out = 0; + rasant_out = 1; rasant_R.Draw(COLOR_OFF); /* EFFI-Flex */ flex1_active = 0; - flex1_out = 0; + flex1_out = 1; flex1_W.Draw(COLOR_OFF); flex2_active = 0; - flex2_out = 0; + flex2_out = 1; flex2_W.Draw(COLOR_OFF); /* Conveyor */ int8_t x = (int8_t)conv_speed.GetValue(); @@ -121,28 +121,28 @@ light_on.Draw(0xFFFFFFFF, 0xFF000000); ringRGB_R_active = 1; - ringRGB_R_out = 1; + ringRGB_R_out = 0; ringRGB_R.Draw(0xFFFF0000); ringRGB_G_active = 1; - ringRGB_G_out = 1; + ringRGB_G_out = 0; ringRGB_G.Draw(0xFF33DD33, 0xFF000000); ringRGB_B_active = 1; - ringRGB_B_out = 1; + ringRGB_B_out = 0; ringRGB_B.Draw(0xFF0000FF); dome_active = 1; - dome_out = 1; + dome_out = 0; dome_W.Draw(0xFFFFFFFF, 0xFF000000); rasant_active = 1; - rasant_out = 1; + rasant_out = 0; rasant_R.Draw(0xFFFF0000); flex1_active = 1; - flex1_out = 1; + flex1_out = 0; flex1_W.Draw(0xFFEEEEEE, 0xFF000000); flex2_active = 1; - flex2_out = 1; + flex2_out = 0; flex2_W.Draw(0xFFEEEEEE, 0xFF000000); all_on_active = 0; @@ -158,13 +158,13 @@ if (ringRGB_R.Touched()){ if(ringRGB_R_active){ ringRGB_R_active = 0; - ringRGB_R_out = 0; + ringRGB_R_out = 1; all_on_active = 0; ringRGB_R.Draw(COLOR_OFF); } else{ ringRGB_R_active = 1; - ringRGB_R_out = 1; + ringRGB_R_out = 0; ringRGB_R.Draw(0xFFFF0000); } @@ -172,13 +172,13 @@ if (ringRGB_G.Touched()){ if(ringRGB_G_active){ ringRGB_G_active = 0; - ringRGB_G_out = 0; + ringRGB_G_out = 1; all_on_active = 0; ringRGB_G.Draw(COLOR_OFF, 0xFFFFFFFF); } else{ ringRGB_G_active = 1; - ringRGB_G_out = 1; + ringRGB_G_out = 0; ringRGB_G.Draw(0xFF33DD33, 0xFF000000); } @@ -186,13 +186,13 @@ if (ringRGB_B.Touched()){ if(ringRGB_B_active){ ringRGB_B_active = 0; - ringRGB_B_out = 0; + ringRGB_B_out = 1; all_on_active = 0; ringRGB_B.Draw(COLOR_OFF); } else{ ringRGB_B_active = 1; - ringRGB_B_out = 1; + ringRGB_B_out = 0; ringRGB_B.Draw(0xFF0000FF); } @@ -200,39 +200,39 @@ if (dome_W.Touched()){ if(dome_active){ dome_active = 0; - dome_out = 0; + dome_out = 1; all_on_active = 0; dome_W.Draw(COLOR_OFF, 0xFFFFFFFF); } else{ dome_active = 1; - dome_out = 1; + dome_out = 0; dome_W.Draw(0xFFFFFFFF, 0xFF000000); } } if (rasant_R.Touched()){ if(rasant_active){ rasant_active = 0; - rasant_out = 0; + rasant_out = 1; all_on_active = 0; rasant_R.Draw(COLOR_OFF); } else{ rasant_active = 1; - rasant_out = 1; + rasant_out = 0; rasant_R.Draw(0xFFFF0000); } } if (flex1_W.Touched()){ if(flex1_active){ flex1_active = 0; - flex1_out = 0; + flex1_out = 1; all_on_active = 0; flex1_W.Draw(COLOR_OFF, 0xFFFFFFFF); } else{ flex1_active = 1; - flex1_out = 1; + flex1_out = 0; flex1_W.Draw(0xFFEEEEEE, 0xFF000000); } } @@ -240,13 +240,13 @@ if (flex2_W.Touched()){ if(flex2_active){ flex2_active = 0; - flex2_out = 0; + flex2_out = 1; all_on_active = 0; flex2_W.Draw(COLOR_OFF, 0xFFFFFFFF); } else{ flex2_active = 1; - flex2_out = 1; + flex2_out = 0; flex2_W.Draw(0xFFEEEEEE, 0xFF000000); } }