WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
cmd_max_bytes_per_step Struct Reference

#include <cmd_TelemetryManager.h>

Inheritance diagram for cmd_max_bytes_per_step:

Public Member Functions

uint16 apid () const override
uint16 size () const override
void packetize (uint8 *out) const override
void depacketize (const uint8 *in) override
int16 str (char *output, uint16 size) const override

Public Attributes

char temp_buf [MAX_TLM_FIELD_CHAR_BUF_SIZE]
uint16 bytes

Detailed Description

Set the max bytes per step for a given APID

This command sets the max bytes per step for telemetry sending. This is the maximum amount of bytes that can be sent in a single step (i.e. in a single call to the telemetry manager's step function). This is useful for limiting the amount of telemetry sent in a single step to avoid overwhelming the communication system. The value is clamped to the maximum size of the telemetry queues. Setting this value to 0 will effectively pause all telemetry sending. The default value is the combined size of both telemetry queues.

Member Function Documentation

◆ apid()

uint16 cmd_max_bytes_per_step::apid ( ) const
inlineoverridevirtual

Reimplemented from cmd_tlm_base.

◆ depacketize()

void cmd_max_bytes_per_step::depacketize ( const uint8 * in)
inlineoverridevirtual

Reimplemented from cmd_tlm_base.

◆ packetize()

void cmd_max_bytes_per_step::packetize ( uint8 * out) const
inlineoverridevirtual

Reimplemented from cmd_tlm_base.

◆ size()

uint16 cmd_max_bytes_per_step::size ( ) const
inlineoverridevirtual

Reimplemented from cmd_tlm_base.

◆ str()

int16 cmd_max_bytes_per_step::str ( char * output,
uint16 size ) const
inlineoverridevirtual

Reimplemented from cmd_tlm_base.

Member Data Documentation

◆ bytes

uint16 cmd_max_bytes_per_step::bytes

◆ temp_buf

char cmd_max_bytes_per_step::temp_buf[MAX_TLM_FIELD_CHAR_BUF_SIZE]
mutable

The documentation for this struct was generated from the following file: