|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Transport delay filter implementation. More...
#include "paparazzi.h"
Include dependency graph for transport_delay.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | TransportDelay |
Macros | |
| #define | TRANSPORT_DELAY_BUFFER_SIZE 20 |
Functions | |
| static void | init_transport_delay (struct TransportDelay *td, uint8_t delay_samples, const float initial_value) |
| Initialize a transport delay buffer. | |
| static float | update_transport_delay (struct TransportDelay *td, const float input) |
| Propagate a new input value through the transport delay buffer. | |
| static void | reset_transport_delay (struct TransportDelay *td, const float initial_value) |
| Reset the transport delay buffer to a specific initial value. | |
| static float | get_transport_delay (const struct TransportDelay *td) |
| Get the current output value from the transport delay buffer without updating it. | |
Transport delay filter implementation.
Definition in file transport_delay.h.
| struct TransportDelay |
Definition at line 31 of file transport_delay.h.
| Data Fields | ||
|---|---|---|
| float | buffer[TRANSPORT_DELAY_BUFFER_SIZE] | |
| uint8_t | delay_samples | |
| uint8_t | write_index | |
| #define TRANSPORT_DELAY_BUFFER_SIZE 20 |
Definition at line 29 of file transport_delay.h.
|
inlinestatic |
Get the current output value from the transport delay buffer without updating it.
| td | Pointer to the transport_delay_t structure. |
Definition at line 97 of file transport_delay.h.
References foo, and TRANSPORT_DELAY_BUFFER_SIZE.
Referenced by get_transport_delay_array().
Here is the caller graph for this function:
|
inlinestatic |
Initialize a transport delay buffer.
| [out] | td | Pointer to the transport_delay_t structure to initialize. |
| [in] | delay_samples | Number of samples to delay. If this value exceeds TRANSPORT_DELAY_BUFFER_SIZE, it will be clamped to TRANSPORT_DELAY_BUFFER_SIZE. |
| [in] | initial_value | Initial value to fill the buffer with. |
Definition at line 49 of file transport_delay.h.
References foo, and TRANSPORT_DELAY_BUFFER_SIZE.
Referenced by init_transport_delay_array().
Here is the caller graph for this function:
|
inlinestatic |
Reset the transport delay buffer to a specific initial value.
| [in,out] | td | Pointer to the transport_delay_t structure. |
| [in] | initial_value | Value to reset the buffer elements to. |
Definition at line 83 of file transport_delay.h.
References foo, and TRANSPORT_DELAY_BUFFER_SIZE.
Referenced by reset_transport_delay_array().
Here is the caller graph for this function:
|
inlinestatic |
Propagate a new input value through the transport delay buffer.
| [in,out] | td | Pointer to the transport_delay_t structure. |
| [in] | input | New input value to add to the buffer. |
Definition at line 68 of file transport_delay.h.
References foo, and TRANSPORT_DELAY_BUFFER_SIZE.
Referenced by update_transport_delay_array().
Here is the caller graph for this function: