Denver / Mbed 2 deprecated denver_train_proj

Dependencies:   mbed TextLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers position.cpp Source File

position.cpp

00001 #include <vector>
00002 using namespace std;
00003 class Position{
00004     private:
00005         int position; 
00006         vector <int> previous_cw;
00007         vector <int> previous_ccw;
00008     public:
00009         Position(int p){
00010             position = p;
00011         }
00012 
00013         vector <int> get_previous_cw(){
00014             return previous_cw;    
00015         }
00016         
00017         vector <int> get_previous_ccw(){
00018             return previous_ccw;    
00019         }
00020         
00021         void add_prev_cw(int pos){
00022             previous_cw.push_back(pos);
00023         };
00024         
00025         void add_prev_ccw(int pos){
00026             previous_ccw.push_back(pos);
00027         };
00028 };