Commit 552894c3 authored by fmg005's avatar fmg005

Added more data requests to output file

parent 69b1a088
......@@ -107,8 +107,8 @@ void HardwareSimulator::SetRespRate(double rate) {
void HardwareSimulator::SetOxygenSat(double rate) {
int o2_rate = static_cast<int>(rate);
/* 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;
std::string s_rate = std::to_string(i_rate);
......
......@@ -2,8 +2,8 @@
#include <string>
#include <thread>
#include <vector>
#include <map>
#include <libconfig.h++>
#include <map>
#include "serial/serial.h"
#include "HardwareSimulator.h"
......@@ -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("DiastolicArterialPressure", 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");
SEHemorrhage hemorrhageLeg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment