ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsSENS Class Reference

#include <ngcdcsSENS.hpp>

Inheritance diagram for ngcdcsSENS:
ngcdcsMPL115A ngcdcsMPL3115A2_PRESSURE ngcdcsMPL3115A2_TEMP ngcdcsSHT31_RHUM ngcdcsSHT31_TEMP ngcdcsSHTx_RHUM ngcdcsSHTx_TEMP

Public Member Functions

ngcdcsSENSoperator= (const ngcdcsSENS &other)
 Operator =.
 
 ngcdcsSENS (int filterSize=9)
 Constructor.
 
 ngcdcsSENS (const ngcdcsSENS &other)
 Copy constructor.
 
virtual ~ngcdcsSENS ()
 Destructor.
 
void AttachLogging (ngcbOBJ *obj)
 Attach logging system.
 
char * ErrMsg ()
 Error message.
 
void Prefix (const char *s)
 Set prefix for logging and alarm system.
 
void Reset ()
 Reset errors and alarms.
 
void ClearFilter (int prefill)
 Clear sensor filter.
 
int FilterStatus ()
 Get filter status (return 1 if filter is filled with valid data)
 
int Process (const int *r, ngcbALARM_SYS *alarmSystem)
 Process sensor register(s)
 

Public Attributes

double value
 Sensor value.
 
int error
 Sensor error flag.
 
int active
 Sensor enabled.
 
int faults
 Number of faulty sensor reads.
 
ngcdcs_rck_t rck
 Range-check.
 
char unit [8]
 Sensor unit.
 
char format [8]
 Sensor data format (floating point precision)
 
char name [32]
 Sensor name.
 
ngcbMEDIANfilter
 Median filter for sensor.
 

Protected Member Functions

virtual int Value (const int *r, double *data)
 Compute sensor data from register(s)
 
void OpsLog (const char *msg)
 Operational log.
 

Protected Attributes

int valid
 Sensor data valid (flag)
 

Detailed Description

NGC sensor base class

Constructor & Destructor Documentation

◆ ngcdcsSENS() [1/2]

ngcdcsSENS::ngcdcsSENS ( int filterSize = 9)
explicit

Constructor.

◆ ngcdcsSENS() [2/2]

ngcdcsSENS::ngcdcsSENS ( const ngcdcsSENS & other)

Copy constructor.

◆ ~ngcdcsSENS()

ngcdcsSENS::~ngcdcsSENS ( )
virtual

Destructor.

Member Function Documentation

◆ AttachLogging()

void ngcdcsSENS::AttachLogging ( ngcbOBJ * obj)

Attach logging system.

◆ ClearFilter()

void ngcdcsSENS::ClearFilter ( int prefill)

Clear sensor filter.

◆ ErrMsg()

char * ngcdcsSENS::ErrMsg ( )
inline

Error message.

◆ FilterStatus()

int ngcdcsSENS::FilterStatus ( )

Get filter status (return 1 if filter is filled with valid data)

◆ operator=()

ngcdcsSENS & ngcdcsSENS::operator= ( const ngcdcsSENS & other)

Operator =.

◆ OpsLog()

void ngcdcsSENS::OpsLog ( const char * msg)
protected

Operational log.

◆ Prefix()

void ngcdcsSENS::Prefix ( const char * s)

Set prefix for logging and alarm system.

◆ Process()

int ngcdcsSENS::Process ( const int * r,
ngcbALARM_SYS * alarmSystem )

Process sensor register(s)

◆ Reset()

void ngcdcsSENS::Reset ( )

Reset errors and alarms.

◆ Value()

int ngcdcsSENS::Value ( const int * r,
double * data )
protectedvirtual

Member Data Documentation

◆ active

int ngcdcsSENS::active

Sensor enabled.

◆ error

int ngcdcsSENS::error

Sensor error flag.

◆ faults

int ngcdcsSENS::faults

Number of faulty sensor reads.

◆ filter

ngcbMEDIAN* ngcdcsSENS::filter

Median filter for sensor.

◆ format

char ngcdcsSENS::format[8]

Sensor data format (floating point precision)

◆ name

char ngcdcsSENS::name[32]

Sensor name.

◆ rck

ngcdcs_rck_t ngcdcsSENS::rck

Range-check.

◆ unit

char ngcdcsSENS::unit[8]

Sensor unit.

◆ valid

int ngcdcsSENS::valid
protected

Sensor data valid (flag)

◆ value

double ngcdcsSENS::value

Sensor value.


The documentation for this class was generated from the following files: