Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
View.h@0:ded79d89abdf, 2015-05-01 (annotated)
- Committer:
- tyleralt
- Date:
- Fri May 01 05:33:50 2015 +0000
- Revision:
- 0:ded79d89abdf
- Child:
- 1:bb1507f0bb64
geting Frist crossing and second not working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tyleralt | 0:ded79d89abdf | 1 | #include "mbed.h" |
tyleralt | 0:ded79d89abdf | 2 | #include <vector> |
tyleralt | 0:ded79d89abdf | 3 | #define BUFFER_SIZE 16 |
tyleralt | 0:ded79d89abdf | 4 | #define NUMBER_OF_SLICES 360 |
tyleralt | 0:ded79d89abdf | 5 | #include "Point.h" |
tyleralt | 0:ded79d89abdf | 6 | #include "EuclidPoint.h" |
tyleralt | 0:ded79d89abdf | 7 | |
tyleralt | 0:ded79d89abdf | 8 | class View { |
tyleralt | 0:ded79d89abdf | 9 | |
tyleralt | 0:ded79d89abdf | 10 | |
tyleralt | 0:ded79d89abdf | 11 | //Declare global vars |
tyleralt | 0:ded79d89abdf | 12 | char slice_data [360][16]; //[slice][specific led distance] (0 is closest) & with approppriate bit for each arm |
tyleralt | 0:ded79d89abdf | 13 | |
tyleralt | 0:ded79d89abdf | 14 | void pushData(char [16]); |
tyleralt | 0:ded79d89abdf | 15 | |
tyleralt | 0:ded79d89abdf | 16 | public : |
tyleralt | 0:ded79d89abdf | 17 | int current_slice; |
tyleralt | 0:ded79d89abdf | 18 | View(); |
tyleralt | 0:ded79d89abdf | 19 | void nextLedPush(void); |
tyleralt | 0:ded79d89abdf | 20 | void resetCount(void); |
tyleralt | 0:ded79d89abdf | 21 | void resetDisplay(void); |
tyleralt | 0:ded79d89abdf | 22 | void setCurrentSlice(int); |
tyleralt | 0:ded79d89abdf | 23 | void addPoint(Point); |
tyleralt | 0:ded79d89abdf | 24 | void addEucPoint(EuclidPoint); |
tyleralt | 0:ded79d89abdf | 25 | }; |