Browse Source

Changed Syntax

Raphael Benistant 4 years ago
parent
commit
dfe5df3a48

+ 4
- 4
software/raspberry/superviseur-robot/tasks.cpp View File

@@ -150,14 +150,14 @@ void Tasks::Init() {
150 150
         exit(EXIT_FAILURE);
151 151
     }
152 152
 
153
-    if (err = rt_sem_create(&sem_allow_StartReceive, NULL, 0, S_FIFO)) {
153
+    if (err = rt_sem_create(&sem_allowStartReceive, NULL, 0, S_FIFO)) {
154 154
         cerr << "Error semaphore create: " << strerror(-err) << endl << flush;
155 155
         exit(EXIT_FAILURE);
156 156
     }   
157 157
     
158 158
     
159 159
     //Initialization for some specific sem: Allow to run the first time
160
-    rt_sem_v(&sem_allow_StartReceive);
160
+    rt_sem_v(&sem_allowStartReceive);
161 161
     
162 162
     cout << "Semaphores created successfully" << endl << flush;
163 163
 
@@ -325,7 +325,7 @@ void Tasks::ReceiveFromMonTask(void *arg) {
325 325
     rt_sem_p(&sem_barrier, TM_INFINITE);
326 326
     
327 327
     //Wait twin task to die if not first round
328
-    rt_sem_p(&sem_allow_StartReceive, TM_INFINITE);
328
+    rt_sem_p(&sem_allowStartReceive, TM_INFINITE);
329 329
     
330 330
     //Reinitialize control boolean 
331 331
     rt_mutex_acquire(&mutex_killReceiveFromMon, TM_INFINITE);
@@ -450,7 +450,7 @@ void Tasks::ReceiveFromMonTask(void *arg) {
450 450
         
451 451
     }
452 452
     
453
-    rt_sem_v(&sem_allow_StartReceive);
453
+    rt_sem_v(&sem_allowStartReceive);
454 454
 }
455 455
 
456 456
 /**

+ 1
- 1
software/raspberry/superviseur-robot/tasks.h View File

@@ -115,7 +115,7 @@ private:
115 115
     RT_SEM sem_serverOk;
116 116
     RT_SEM sem_startRobotWithoutWatchdog;
117 117
     RT_SEM sem_startRobotWithWatchdog;
118
-    RT_SEM sem_allow_StartReceive;
118
+    RT_SEM sem_allowStartReceive;
119 119
     
120 120
     /**********************************************************************/
121 121
     /* Message queues                                                     */

Loading…
Cancel
Save