Gestion Connection Lost

這個提交存在於:
Lartigue Auriane 2021-02-26 10:43:00 +01:00
父節點 08bcb07f05
當前提交 cdf4ce64e9
共有 2 個檔案被更改,包括 7 行新增5 行删除

查看文件

@ -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);
rt_mutex_acquire(&mutex_monitor, TM_INFINITE);
monitor.Write(msg);
rt_mutex_release(&mutex_monitor);
if (msg->CompareID((MessageID)MESSAGE_ROBOT_BATTERY_LEVEL)) {
rt_mutex_acquire(&mutex_monitor, TM_INFINITE);
monitor.Write(msg);
rt_mutex_release(&mutex_monitor);
}
}