test
Dependencies: MODDMA MODSERIAL mbed
Fork of IRIS_MBED by
botStateHandler.h@4:1017848d2fe1, 2015-03-26 (annotated)
- Committer:
- JonathanAshworth
- Date:
- Thu Mar 26 12:02:10 2015 +0000
- Revision:
- 4:1017848d2fe1
Tested working version using dma ISRs
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JonathanAshworth | 4:1017848d2fe1 | 1 | /* |
JonathanAshworth | 4:1017848d2fe1 | 2 | * File: botStateHandler.h |
JonathanAshworth | 4:1017848d2fe1 | 3 | * Author: jhudson |
JonathanAshworth | 4:1017848d2fe1 | 4 | * |
JonathanAshworth | 4:1017848d2fe1 | 5 | * Created on 25 March 2015, 13:31 |
JonathanAshworth | 4:1017848d2fe1 | 6 | */ |
JonathanAshworth | 4:1017848d2fe1 | 7 | |
JonathanAshworth | 4:1017848d2fe1 | 8 | #ifndef BOTSTATEHANDLER_H |
JonathanAshworth | 4:1017848d2fe1 | 9 | #define BOTSTATEHANDLER_H |
JonathanAshworth | 4:1017848d2fe1 | 10 | |
JonathanAshworth | 4:1017848d2fe1 | 11 | struct sensorData { |
JonathanAshworth | 4:1017848d2fe1 | 12 | unsigned char fieldCount; |
JonathanAshworth | 4:1017848d2fe1 | 13 | float fields[10]; |
JonathanAshworth | 4:1017848d2fe1 | 14 | }; |
JonathanAshworth | 4:1017848d2fe1 | 15 | |
JonathanAshworth | 4:1017848d2fe1 | 16 | class botStateHandler |
JonathanAshworth | 4:1017848d2fe1 | 17 | { |
JonathanAshworth | 4:1017848d2fe1 | 18 | private: |
JonathanAshworth | 4:1017848d2fe1 | 19 | struct sensorData sensors[26]; |
JonathanAshworth | 4:1017848d2fe1 | 20 | public: |
JonathanAshworth | 4:1017848d2fe1 | 21 | botStateHandler(); |
JonathanAshworth | 4:1017848d2fe1 | 22 | int getVal(unsigned char,unsigned char,float *); |
JonathanAshworth | 4:1017848d2fe1 | 23 | int setVal(unsigned char,unsigned char,float *); |
JonathanAshworth | 4:1017848d2fe1 | 24 | }; |
JonathanAshworth | 4:1017848d2fe1 | 25 | |
JonathanAshworth | 4:1017848d2fe1 | 26 | #endif /* BOTSTATEHANDLER_H */ |