TReK Python  5.3.3
Telemetry/Command API
TelemetryApi Class Reference

Provides access to telemetry features of TReK. More...

Inherits ApiClient.

Public Member Functions

Initialize / Finalize

Functions handling class initialization and destruction.

def TelemetryApi ( -> None  -> def  -> def ) -> def 
 Class initializer. More...
 
Packet Handling

Functions for retrieving packets.

def get_packet_definition (packet_key: str, Packet packet -> None  -> def  -> def ) -> def 
 Retrieve the Packet definition for the specified key. More...
 
def get_newest_packet (packet_key: str, buffer: bytearray -> Tuple[int, int]  -> def  -> def ) -> def 
 Gets a copy of the newest packet available from the data store. More...
 
def get_next_packet (packet_key: str, token: int, buffer: bytearray -> Tuple[int, int, int]  -> def  -> def ) -> def 
 Gets a copy of the next packet available from the data store. More...
 
def get_this_packet (packet_key: str, token: int, buffer: bytearray -> int  -> def  -> def ) -> def 
 Gets a copy of the specified packet from the data store. More...
 
def get_source_list ( -> List[str]  -> def  -> def ) -> def 
 Gets the list of packet keys currently being processed. More...
 
def register_packet_semaphore (packet_key: str -> None  -> def  -> def ) -> def 
 Registers a semaphore to be signaled when a packet arrives. More...
 
def unregister_packet_semaphore (packet_key: str -> None  -> def  -> def ) -> def 
 Unregisters the packet arrival semaphore. More...
 
def wait_for_packet (packet_key: str, timeout: int=0 -> bool  -> def  -> def ) -> def 
 Waits for the specified packet to arrive. More...
 
Logging

Functions handling TReK logging.

def set_monitor_log_file (filename: str -> None  -> def  -> def ) -> def 
 Sets the filename prefix and path used for writing monitor messages if monitor logging is on. More...
 
def start_monitor_logging ( -> None  -> def  -> def ) -> def 
 Starts the logging of monitor messages. More...
 
def stop_monitor_logging ( -> None  -> def  -> def ) -> def 
 Stops the logging of monitor messages. More...
 
- Public Member Functions inherited from ApiClient
def cleanse ( -> None  -> def  -> def ) -> def 
 Cleans up any resources from crashed TReK user programs. More...
 
def connect (destination: str="DefaultDataStore" -> None  -> def  -> def ) -> def 
 Connects this instance of the API to TReK for the specified destination. More...
 
def is_connected ( -> bool  -> def  -> def ) -> def 
 Indicates if the API is connected. More...
 
def disconnect ( -> None  -> def  -> def ) -> def 
 Disconnects from the destination. More...
 
def get_wait_timeout ( -> int  -> def  -> def ) -> def 
 Returns the current timeout value for API calls. More...
 
def set_wait_timeout (timeout: int -> None  -> def  -> def ) -> def 
 Sets the timeout value for API calls that require communicating with TReK. More...
 

Detailed Description

Provides access to telemetry features of TReK.

This class provides access to the telemetry feature of TReK. Users of the class can get packets, convert and calibrate parameters.

Constructor & Destructor Documentation

◆ TelemetryApi()

() -> None

Class initializer.

TelemetryApi creation:

my_telemetry_api = TelemetryApi()

Reimplemented from ApiClient.

Member Function Documentation

◆ get_newest_packet()

(packet_key : str