#include <DC_DummyTelemetryPacket.h>
Inheritance diagram for DC_DummyTelemetryPacket:
TelemetryPacket
interface useful for testing purposes.
This telemetry packet encapsulates N settable bytes. The value of N is a configuration parameter. The update service is implemented to increment the value of each telemetry byte by one (with a wrap-around to zero when the value of 255 is reached). The validity check can be dynamically set up to return either "data valid" or "data not valid".
Definition at line 30 of file DC_DummyTelemetryPacket.h.
Public Member Functions | |
DC_DummyTelemetryPacket (void) | |
Instantiate a telemetry packet component. | |
virtual unsigned int | getNumberOfBytes (void) |
This method always returns the number of telemetry bytes. | |
virtual unsigned char | getUnsignedByte (unsigned int n) |
Return the n-th encapsulated byte. | |
virtual void | update (void) |
Increment the value of each encapsulated byte by one. | |
void | setValidStatus (bool validStatus) |
Set the validity status. | |
void | setValue (unsigned int n, unsigned char value) |
Set the value of the n-th encapsulated byte. | |
void | setNumberOfBytes (unsigned int n) |
Set the number of bytes encapsulated by this telemetry packet. | |
virtual bool | isValid (void) |
Return the validity status set with method setValidStatus . | |
virtual bool | isObjectConfigured (void) |
Perform a class-specific configuration check on the component: verify that the number of encapsulated bytes has been set. |
|
Instantiate a telemetry packet component.
The class identifier is set, and the return value of the validity check is set to "data valid". The number of encapsulated bytes is set to an illegal value tosignify that the component is not yet configured. The constructor also calls the methods to set the telemetry packet time tag, the type, the subtype, and the destination. These calls are unnecessary from a functional point of view because none of these attributes is implemented by the Definition at line 16 of file DC_DummyTelemetryPacket.cpp. |
|
This method always returns the number of telemetry bytes.
Implements TelemetryPacket. Definition at line 42 of file DC_DummyTelemetryPacket.cpp. |
|
Return the n-th encapsulated byte.
Implements TelemetryPacket. Definition at line 29 of file DC_DummyTelemetryPacket.cpp. |
|
Perform a class-specific configuration check on the component: verify that the number of encapsulated bytes has been set.
Reimplemented from CC_RootObject. Definition at line 69 of file DC_DummyTelemetryPacket.cpp. |
|
Return the validity status set with method
Reimplemented from TelemetryPacket. Definition at line 38 of file DC_DummyTelemetryPacket.cpp. |
|
Set the number of bytes encapsulated by this telemetry packet. This is an initialization method. It should only be called once. Only positive values of the argument n are legal. The telemetry bytes are initialized to zero.
Definition at line 61 of file DC_DummyTelemetryPacket.cpp. |
|
Set the validity status.
This is the value returned by the validity check (method
Definition at line 34 of file DC_DummyTelemetryPacket.cpp. |
|
Set the value of the n-th encapsulated byte.
This is the value returned by method
Definition at line 56 of file DC_DummyTelemetryPacket.cpp. |
|
Increment the value of each encapsulated byte by one. Wrap around to 0 when the value of 255 is reached. Implements TelemetryPacket. Definition at line 46 of file DC_DummyTelemetryPacket.cpp. |