Gestion Connection Lost
This commit is contained in:
parent
08bcb07f05
commit
cdf4ce64e9
2 changed files with 7 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
#Fri Feb 26 10:15:15 CET 2021
|
||||
#Fri Feb 26 10:29:03 CET 2021
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/lib/base64/README.md=c1614324901000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/nbproject/project.xml=c1614324902000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/lib/commonitor.h=c1614324901000
|
||||
|
@ -15,7 +15,7 @@
|
|||
VERSION=1.3
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/lib/img.cpp=c1614324901000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/lib/img.h=c1614324901000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/tasks.cpp=c1614330913000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/tasks.cpp=c1614331741000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/Makefile=c1614324901000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/lib/camera.h=c1614324901000
|
||||
/home/alartigu/Bureau/Temps_Reel_Robot/software/raspberry/superviseur-robot/nbproject/Makefile-Debug__PC_.mk=c1614324901000
|
||||
|
|
|
@ -450,9 +450,11 @@ void Tasks::ReadBattery(void *arg){
|
|||
rt_mutex_acquire(&mutex_robot, TM_INFINITE);
|
||||
Message *msg = robot.Write( robot.GetBattery() ) ;
|
||||
rt_mutex_release(&mutex_robot);
|
||||
if (msg->CompareID((MessageID)MESSAGE_ROBOT_BATTERY_LEVEL)) {
|
||||
rt_mutex_acquire(&mutex_monitor, TM_INFINITE);
|
||||
monitor.Write(msg);
|
||||
rt_mutex_release(&mutex_monitor);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue