polymorphic base structures for easily implementing different gaits. Triangle wave is already in there
Dependents: robotic_fish_ver_4_9_pixy
Diff: fishgait.h
- Revision:
- 1:0aa1a6ccf5fe
- Parent:
- 0:aec7653a5b19
- Child:
- 2:d95c40ac8a3e
diff -r aec7653a5b19 -r 0aa1a6ccf5fe fishgait.h --- a/fishgait.h Thu Jun 19 17:53:17 2014 +0000 +++ b/fishgait.h Thu Jun 19 19:51:59 2014 +0000 @@ -21,4 +21,15 @@ triangleGait(float freq, float amplitude); //~triangleGait(); float compute(); //this does a triangle wave pattern. frequency and amplitude controlled +}; + +class squareGait: public fishgait +{ +private: +float frq; +float amp; +public: +squareGait(float freq, float amplitude); +//~triangleGait(); +float compute(); //this does a triangle wave pattern. frequency and amplitude controlled }; \ No newline at end of file