This is the vcdMaker demo project. See http://vcdmaker.org for details. vcdMaker is supposed to help engineers to debug their applications and systems. It transforms text log files into the VCD format which can be easily displayed as a waveform.

Dependencies:   mbed vcdLogger vcdSignal

Committer:
ketjow
Date:
Fri Feb 12 21:38:04 2016 +0000
Revision:
0:9a59cffaafad
Child:
1:446154224f92
vcdMaker demo

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ketjow 0:9a59cffaafad 1 #include "slider.hpp"
ketjow 0:9a59cffaafad 2
ketjow 0:9a59cffaafad 3 Slider::Slider(const string& name, Logger& logger) : Signal(name, 7, logger)
ketjow 0:9a59cffaafad 4 {
ketjow 0:9a59cffaafad 5 m_SliderPrev = 0;
ketjow 0:9a59cffaafad 6 m_SliderCurr = 0;
ketjow 0:9a59cffaafad 7 }
ketjow 0:9a59cffaafad 8
ketjow 0:9a59cffaafad 9 void Slider::PrintState()
ketjow 0:9a59cffaafad 10 {
ketjow 0:9a59cffaafad 11 string suffix("");
ketjow 0:9a59cffaafad 12 string msg("");
ketjow 0:9a59cffaafad 13 int32_t time_ref = 0;
ketjow 0:9a59cffaafad 14
ketjow 0:9a59cffaafad 15 m_SliderCurr = m_Slider.readPercentage() * 100;
ketjow 0:9a59cffaafad 16 if ( (CheckFilter()) || \
ketjow 0:9a59cffaafad 17 (fabs((float)(m_SliderCurr - m_SliderPrev)) > 0))
ketjow 0:9a59cffaafad 18 {
ketjow 0:9a59cffaafad 19 PrintVector(m_SliderCurr, suffix, msg, time_ref);
ketjow 0:9a59cffaafad 20 m_SliderPrev = m_SliderCurr;
ketjow 0:9a59cffaafad 21 }
ketjow 0:9a59cffaafad 22 }