ERIS CORE

◆ update()

void AppScope::update ( )
inlineprotectedvirtual

update loop

Reimplemented from AppBaseClass.

Definition at line 72 of file appScope.h.

72  {
73  am->data->update("INPUT_PEAK",(int32_t)scope->getPeakValue());
74  /*
75  //publish the scopes math functions
76  AppManager *am = AppManager::getInstance();
77  //am->data->update("DOT",scope->getDotProduct());
78  //am->data->update("DOT_AVG",scope->getDotProductAvg());
79  am->data->update("DOT_AVG_SLOW",scope->getDotProductAvgSlow());
80  am->data->update("DOT_DELTA",scope->getDotDelta());
81  //am->data->update("DOT_DELTA_MACD",scope->getDotDeltaMACD());
82  am->data->update("DOT_ACCEL",scope->getDotAcceleration());
83  //am->data->update("DOT_MACD",scope->getDotMACD());
84  //am->data->update("EDGE_COUNT",scope->getEdgeCount());
85  //am->data->update("EDGE_COUNT_CH2",scope->getEdgeCount_ch2());
86  //am->data->update("EDGE_DELAY",scope->getEdgeDelay());
87  //am->data->update("EDGE_DELAY2",scope->getEdgeDelay2());
88  am->data->update("EDGE_DELTA",scope->getEdgeDelay()-scope->getEdgeDelay2() + 1); //min value of 1 (protect for div by zero)
89  am->data->update("INPUT_PEAK",scope->getPeakValue());
90  if(scope->getEdgeDelay()>20) am->data->update("CH1_FREQ",(int32_t)(AUDIO_SAMPLE_RATE_EXACT/(0.001* ((float32_t)scope->getEdgeDelay() + 0.00001))));
91  if(scope->getEdgeDelay2()>20) am->data->update("CH2_FREQ",(int32_t)(AUDIO_SAMPLE_RATE_EXACT/(0.001* ((float32_t)scope->getEdgeDelay2()+ 0.00001))));
92  */
93  }; //allways called even if app is not active
AppManager * am
Definition: AppBaseClass.h:38
SvcDataDictionary * data
Definition: AppManager.h:63
erisAudioAnalyzeScope * scope
Definition: appScope.h:25
bool update(const char *key, int32_t val, uint32_t *owner)
update the value of an owned record creates a new record if one does not exist and initializes its ...

References AppBaseClass::am, AppManager::data, erisAudioAnalyzeScope::getPeakValue(), scope, and SvcDataDictionary::update().

+ Here is the call graph for this function: