Inherits fsf::CCell.
Public Member Functions | |
CAdjustDelay () | |
Default constructor. | |
virtual void | getTypeID (std::string &str) const |
Gets thsi cell's factory mapping key. | |
virtual void | process (fsf::CPassiveHandle *pPassiveHandle, fsf::CActiveHandle *pActiveHandle, fsf::CActivePulse *pActivePulse) |
Custom processing function: computes the time interval between two pulses and adjusts the pulsar delay so that the time difference converges towards a target interval. |
The cell also writes to cout
the difference between two consecutive incoming active pulses, in s and Hz
ex2b::CAdjustDelay::CAdjustDelay | ( | ) |
Default constructor.
virtual void ex2b::CAdjustDelay::getTypeID | ( | std::string & | str | ) | const [inline, virtual] |
void ex2b::CAdjustDelay::process | ( | fsf::CPassiveHandle * | pPassiveHandle, | |
fsf::CActiveHandle * | pActiveHandle, | |||
fsf::CActivePulse * | pActivePulse | |||
) | [virtual] |
Custom processing function: computes the time interval between two pulses and adjusts the pulsar delay so that the time difference converges towards a target interval.
Also writes to cout
the difference between the time stamp of the incoming active puse, and the last time stamp recorded.
Reimplemented from fsf::CCell.