test
Dependencies: MODDMA MODSERIAL mbed
Fork of IRIS_MBED by
botStateHandler.h@7:49aba2a2e847, 2015-04-09 (annotated)
- Committer:
- JonathanAshworth
- Date:
- Thu Apr 09 20:07:15 2015 +0000
- Revision:
- 7:49aba2a2e847
- Parent:
- 4:1017848d2fe1
latest version
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 */ |