Macros | Functions
sig_gen.cpp File Reference
#include <math.h>
#include "misc/sig_gen.h"
Include dependency graph for sig_gen.cpp:

Go to the source code of this file.

Macros

#define PI   3.14159265358979
 
#define TWOPI   6.28318530717959
 

Functions

float step_sinwave (float *sig_gen, float freqHz, float amplitude, float periodSec)
 Initialize signal generator. More...
 

Macro Definition Documentation

◆ PI

#define PI   3.14159265358979

Definition at line 5 of file sig_gen.cpp.

◆ TWOPI

#define TWOPI   6.28318530717959

Definition at line 6 of file sig_gen.cpp.

Function Documentation

◆ step_sinwave()

float step_sinwave ( float *  sig_gen,
float  freqHz,
float  amplitude,
float  periodSec 
)

Initialize signal generator.

param float loopPeriodSec Timestep interval in seconds param float freqHz Frequency of output sin wave param float amplitude Amplitude (peak to center/mean) of output sin wave

Step the signal generator output

Definition at line 20 of file sig_gen.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07