Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
pprz_wave.h File Reference
#include "std.h"
#include "math.h"
Include dependency graph for pprz_wave.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  wave_t

Functions

void wave_init (struct wave_t *wave, float start_time_s, float current_time_s, float frequency_hz, float lag_rad)
void wave_reset (struct wave_t *wave, float current_time_s)
bool wave_is_running (struct wave_t *wave)
float wave_update (struct wave_t *wave, float current_time_s)

Data Structure Documentation

◆ wave_t

struct wave_t

Definition at line 34 of file pprz_wave.h.

Data Fields
float current_time_s
float current_value
float frequency_hz
bool is_running
float lag_rad
float start_time_s

Function Documentation

◆ wave_init()

void wave_init ( struct wave_t * wave,
float start_time_s,
float current_time_s,
float frequency_hz,
float lag_rad )

◆ wave_is_running()

bool wave_is_running ( struct wave_t * wave)

Definition at line 52 of file pprz_wave.c.

References wave_t::is_running.

Referenced by sys_id_wave_run().

Here is the caller graph for this function:

◆ wave_reset()

void wave_reset ( struct wave_t * wave,
float current_time_s )

Definition at line 45 of file pprz_wave.c.

References wave_t::current_time_s, wave_t::current_value, and wave_t::start_time_s.

Referenced by start_wave(), and stop_wave().

Here is the caller graph for this function:

◆ wave_update()

float wave_update ( struct wave_t * wave,
float current_time_s )

Definition at line 57 of file pprz_wave.c.

References wave_t::current_value, wave_t::frequency_hz, wave_t::lag_rad, and wave_t::start_time_s.

Referenced by sys_id_wave_run().

Here is the caller graph for this function: