Nathaniel Honka / hapticFeedback

Fork of hapticFeedback by HEL's Angels

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hapticFeedback.h Source File

hapticFeedback.h

00001 #ifndef HAPTIC_H
00002 #define HAPTIC_H
00003 
00004 #include "mbed.h"
00005 #include "HipControl.h"
00006 
00007 extern bool hapticOn;
00008 
00009 class MotorMusic
00010 {
00011 public:
00012     MotorMusic(HipControl &left, HipControl &right);
00013     void check();
00014     void playIronMan();
00015     void playArpeggio();
00016     void playDH();
00017     void playLock();
00018     void playUnlock();
00019     void setDefault(float a);
00020 private:
00021     void song();
00022     void init();
00023     Timer time;
00024     HipControl _left;
00025     HipControl _right;
00026     bool musicFlag;
00027     const float *ptrNotes;
00028     const float *ptrTimes;
00029     int count_max;
00030     int count;
00031     float pwmDefault;
00032 
00033 };
00034 
00035 extern void initializeHapticFeedback(int);
00036 extern void hapticMaintenance();
00037 
00038 
00039 #endif