Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cla_prosim_driver
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fmg005
cla_prosim_driver
Commits
552894c3
Commit
552894c3
authored
May 15, 2018
by
fmg005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more data requests to output file
parent
69b1a088
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
HardwareSimulator.cpp
HardwareSimulator.cpp
+2
-2
SimulationEngine.cpp
SimulationEngine.cpp
+4
-1
No files found.
HardwareSimulator.cpp
View file @
552894c3
...
@@ -107,8 +107,8 @@ void HardwareSimulator::SetRespRate(double rate) {
...
@@ -107,8 +107,8 @@ void HardwareSimulator::SetRespRate(double rate) {
void
HardwareSimulator
::
SetOxygenSat
(
double
rate
)
{
void
HardwareSimulator
::
SetOxygenSat
(
double
rate
)
{
int
o2_rate
=
static_cast
<
int
>
(
rate
);
int
o2_rate
=
static_cast
<
int
>
(
rate
);
/* prosim has a bug, monitor displays value which is 1 unit
/* prosim has a bug, monitor displays value which is 1 unit
higher than set value (for oxygen saturation)
higher than set value (for oxygen saturation)
*/
*/
int
i_rate
=
o2_rate
-
1
;
int
i_rate
=
o2_rate
-
1
;
std
::
string
s_rate
=
std
::
to_string
(
i_rate
);
std
::
string
s_rate
=
std
::
to_string
(
i_rate
);
...
...
SimulationEngine.cpp
View file @
552894c3
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
#include <string>
#include <string>
#include <thread>
#include <thread>
#include <vector>
#include <vector>
#include <map>
#include <libconfig.h++>
#include <libconfig.h++>
#include <map>
#include "serial/serial.h"
#include "serial/serial.h"
#include "HardwareSimulator.h"
#include "HardwareSimulator.h"
...
@@ -58,6 +58,9 @@ void Simulation(const string patient_name, const std::shared_ptr<Config>& cfg, c
...
@@ -58,6 +58,9 @@ void Simulation(const string patient_name, const std::shared_ptr<Config>& cfg, c
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"SystolicArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"SystolicArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"DiastolicArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"DiastolicArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"MeanArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"MeanArterialPressure"
,
PressureUnit
::
mmHg
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"HeartRate"
,
FrequencyUnit
::
Per_min
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"RespirationRate"
,
FrequencyUnit
::
Per_min
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
CreatePhysiologyDataRequest
(
"OxygenSaturation"
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
SetResultsFilename
(
prosim_results_dir
+
"PulseSimEngine_"
+
patient_name
+
".txt"
);
pe
->
GetEngineTracker
()
->
GetDataRequestManager
().
SetResultsFilename
(
prosim_results_dir
+
"PulseSimEngine_"
+
patient_name
+
".txt"
);
SEHemorrhage
hemorrhageLeg
;
SEHemorrhage
hemorrhageLeg
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment