#pragma once
#include "BaseProcess.h"
#include "GComPort.h"
#include "RingBuffer.h"
class BitalMonitor : public BaseProcess
{
const int COM_PORT = 4;
GComPort _Com;
RingBuffer<int> _rrinterval;
RingBuffer<int> _heartbeat;
public:
BitalMonitor(ECTrainer* pEct);
bool Init();
bool MainLoop();
int GetRR() { return _rrinterval.Get(); }
int GetHB() { return _heartbeat.Get(); }
};