Lobster controller program

Dependencies:   FatFileSystem HBridge MSCFileSystem WavPlayer mbed

Fork of RSALB_hbridge_helloworld by Giles Barton-Owen

Committer:
p07gbar
Date:
Fri Sep 21 14:24:10 2012 +0000
Revision:
2:f8199cc69b20
Working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
p07gbar 2:f8199cc69b20 1 #ifndef ACTIONCUE_H
p07gbar 2:f8199cc69b20 2 #define ACTIONCUE_H
p07gbar 2:f8199cc69b20 3
p07gbar 2:f8199cc69b20 4 #define ACTIONCUE_SIZE 100
p07gbar 2:f8199cc69b20 5 #include "Action.h"
p07gbar 2:f8199cc69b20 6
p07gbar 2:f8199cc69b20 7 class ActionCue
p07gbar 2:f8199cc69b20 8 {
p07gbar 2:f8199cc69b20 9 public:
p07gbar 2:f8199cc69b20 10
p07gbar 2:f8199cc69b20 11 ActionCue();
p07gbar 2:f8199cc69b20 12
p07gbar 2:f8199cc69b20 13 void addAction(Action action_to_add);
p07gbar 2:f8199cc69b20 14
p07gbar 2:f8199cc69b20 15 int numActionsStored();
p07gbar 2:f8199cc69b20 16
p07gbar 2:f8199cc69b20 17 Action nextAction();
p07gbar 2:f8199cc69b20 18
p07gbar 2:f8199cc69b20 19 void usedFirst();
p07gbar 2:f8199cc69b20 20
p07gbar 2:f8199cc69b20 21 Action actionAt(float time);
p07gbar 2:f8199cc69b20 22
p07gbar 2:f8199cc69b20 23 void orderCue();
p07gbar 2:f8199cc69b20 24
p07gbar 2:f8199cc69b20 25 private:
p07gbar 2:f8199cc69b20 26
p07gbar 2:f8199cc69b20 27 Action cue[ACTIONCUE_SIZE];
p07gbar 2:f8199cc69b20 28
p07gbar 2:f8199cc69b20 29 int start;
p07gbar 2:f8199cc69b20 30
p07gbar 2:f8199cc69b20 31 int finish;
p07gbar 2:f8199cc69b20 32
p07gbar 2:f8199cc69b20 33 int numStored;
p07gbar 2:f8199cc69b20 34
p07gbar 2:f8199cc69b20 35 int wrap(int in);
p07gbar 2:f8199cc69b20 36
p07gbar 2:f8199cc69b20 37
p07gbar 2:f8199cc69b20 38 };
p07gbar 2:f8199cc69b20 39
p07gbar 2:f8199cc69b20 40 #endif