#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;
public:
BitalMonitor(ECTrainer* pEct);
bool Init();
bool MainLoop();
int GetRR() { return _rrInterval.Get(); }
int GetHB() { return _rrInterval.Get() ? 60000 / _rrInterval.Get() : 0; }
};