RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
gen_zap.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Georgia Institute of Technology
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the Free
6  * Software Foundation, either version 3 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GEN_ZAP_H_
19 #define GEN_ZAP_H_
20 
21 #include "generator.h"
22 
23 class GeneratorZap : public Generator
24 {
25 
26 public:
27  // default constructor
28  GeneratorZap();
29  GeneratorZap(double freq, double freq2, double amplitude, double duration,
30  double dt);
31  ~GeneratorZap();
32  // initialize waveform
33  void init(double freq, double freq2, double amplitude, double duration,
34  double dt);
35 
36 protected:
37  double freq; // Hz
38  double freq2;
39  double duration;
40  double amplitude;
41 };
42 
43 #endif /* GEN_ZAP_H_ */
double dt
Definition: generator.h:57
double duration
Definition: gen_zap.h:39
double freq
Definition: gen_zap.h:37
double freq2
Definition: gen_zap.h:38
double amplitude
Definition: gen_zap.h:40
void init()
Definition: generator.cpp:43