APM:Libraries
Functions
srxl.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int srxl_decode (uint64_t timestamp_us, uint8_t byte, uint8_t *num_values, uint16_t *values, uint16_t max_values, bool *failsafe_state)
 

Function Documentation

◆ srxl_decode()

int srxl_decode ( uint64_t  timestamp_us,
uint8_t  byte,
uint8_t *  num_values,
uint16_t *  values,
uint16_t  max_values,
bool *  failsafe_state 
)

Decode SRXL frames

Structure of all SRXL frames Byte[0]: Header 0xA<VARIANT> –> Variant specific header. Variant is encoded in bits 3-0 of header byte. Byte[1] - Byte[N-2]: SRXL variant specific payload Byte[N-1] - Byte[N]: CRC16 over payload and header

Parameters
[in]timestamp_us- timestamp in microseconds
[in]receivedbyte in microseconds
[out]num_values- number of RC channels extracted from srxl frame
[out]values- array of RC channels with refreshed information as pulsewidth in microseconds Range: 800us - 2200us
[in]maximumnumber of values supported by pixhawk
[out]failsafe_state- true: RC-receiver is in failsafe state, false: RC-receiver is not in failsafe state
Return values
0success (a decoded packet)
1no packet yet (accumulating)
2unknown packet
4checksum error

Definition at line 262 of file srxl.cpp.

Referenced by Linux::RCInput::add_srxl_input(), and srxl_decode().

Here is the call graph for this function:
Here is the caller graph for this function: