Hormodular 1.0
Locomotion gait discovery by using digital hormones on modular robots
Public Member Functions | Protected Member Functions | Protected Attributes
hormodular::Oscillator Class Reference

Abstract class that serves as a base to create different oscillators. More...

#include <Oscillator.h>

Inheritance diagram for hormodular::Oscillator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void setPeriod (int period_ms)
int getPeriod ()
void setAmplitude (float amplitude)
float getAmplitude ()
void setOffset (float offset)
float getOffset ()
void setPhase (float phase)
float getPhase ()
void setParameters (float amplitude, float offset, float phase, int period_ms=0)
 Set all the oscillator parameters at once.
virtual float calculatePos (unsigned long time)=0
 Calculate the position of the oscillator at time.

Protected Member Functions

 Oscillator ()
 Oscillator (float amplitude, float offset, float phase, int period_ms=4000)

Protected Attributes

int period_ms
float amplitude
float offset
float phase

Detailed Description

Abstract class that serves as a base to create different oscillators.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Friends