Dr. Davis and Dr. Dyer special studies robotics project
Dependencies: BSP_DISCO_F469NI LCD_DISCO_F469NI TS_DISCO_F469NI mbed Motordriver
Fork of Configurable_Robots by
Diff: Classes/RobotMVC/RobotModel.h
- Revision:
- 11:10a7bb4bc714
- Parent:
- 10:4dd8b18e07d0
- Child:
- 18:f2a516ad24eb
--- a/Classes/RobotMVC/RobotModel.h Tue May 09 18:48:47 2017 +0000 +++ b/Classes/RobotMVC/RobotModel.h Wed May 10 02:51:54 2017 +0000 @@ -11,6 +11,10 @@ //0 = await command int _mode; + int _larray[8]; + int _threshold; + int _cds[2]; + public: //Constructors/Destructors @@ -25,4 +29,11 @@ void init(); //update the model based on the mode int update(); + + //read the indicated light sensor + int checkLight(int x); + //read bit b of the line array + int checkLine(int b); + //scan the ADC on channel n + int scan(int n); }; \ No newline at end of file