mirror of
https://gitlab.com/manzerbredes/loosely-coupled-dss.git
synced 2025-04-05 11:06:25 +02:00
Debug energy and hints
This commit is contained in:
parent
fb38c4f0b7
commit
87dd421913
2 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
"is_sender": true,
|
||||
"power_off": 0,
|
||||
"power_on":10,
|
||||
"use_hint": false,
|
||||
"use_hint": true,
|
||||
"wake_ts": [ 1, 7, 7 ],
|
||||
"wake_duration": [ 5, 1, 2],
|
||||
"data_size": 50
|
||||
|
@ -13,8 +13,8 @@
|
|||
"power_off": 0,
|
||||
"power_on":10,
|
||||
"use_hint": false,
|
||||
"wake_ts": [ 1, 7, 7 ],
|
||||
"wake_duration": [ 5, 1, 2],
|
||||
"wake_ts": [ 1, 7 ],
|
||||
"wake_duration": [ 5, 1],
|
||||
"data_size": 50
|
||||
}
|
||||
}
|
|
@ -96,6 +96,7 @@ static void obs_node(std::vector<std::string> args) {
|
|||
if(isSender){ // If I am a sender
|
||||
Payload *p=new Payload();
|
||||
if(useHint&&i.HasNext()){
|
||||
p->containsHint=true;
|
||||
p->hint=i.GetNextTS();
|
||||
p->duration=i.GetNextDuration();
|
||||
}
|
||||
|
@ -132,8 +133,7 @@ static void obs_node(std::vector<std::string> args) {
|
|||
i.GotoNextEvent();
|
||||
nWakeUp++; // Increase the number of wake up
|
||||
}
|
||||
|
||||
|
||||
// Done
|
||||
TURN_OFF()
|
||||
XBT_INFO("Observation node %s finished (nWakeUp:%d|nDataRcv:%d)",selfName.c_str(),nWakeUp,nDataRcv);
|
||||
}
|
Loading…
Add table
Reference in a new issue