Modified comments on master Raph

This commit is contained in:
Raphael Benistant 2020-04-03 15:48:21 +02:00
parent 9625d6cec5
commit 54c744b28b
2 changed files with 2 additions and 4 deletions

View file

@ -138,6 +138,7 @@ void Tasks::Init() {
cerr << "Error semaphore create: " << strerror(-err) << endl << flush;
exit(EXIT_FAILURE);
}
if (err = rt_sem_create(&sem_startRobotWithoutWatchdog, NULL, 0, S_FIFO)) {
cerr << "Error semaphore create: " << strerror(-err) << endl << flush;
exit(EXIT_FAILURE);

View file

@ -66,7 +66,7 @@ private:
ComRobot robot;
int robotStarted = 0;
int move = MESSAGE_ROBOT_STOP;
bool killBattery = 0;
bool killBattery = 0; //Used to kill the tasks start with or without watchdog
bool killReceiveFromMon=0;
bool killVision=0;
bool searchArena=0;
@ -105,12 +105,9 @@ private:
RT_MUTEX mutex_drawArena;
RT_MUTEX mutex_getPosition;
RT_MUTEX mutex_killSendMon;
RT_MUTEX mutex_killStartRobWD;
RT_MUTEX mutex_killDetectLostSupRob;
RT_MUTEX mutex_killStartRob;
RT_MUTEX mutex_acquireImage;
RT_MUTEX mutex_killOpenComRobot;
/**********************************************************************/
/* Semaphores */
/**********************************************************************/