C++ Library for the PsiSwarm Robot - Version 0.8
Dependents: PsiSwarm_V8_Blank_CPP Autonomia_RndmWlk
Fork of PsiSwarmV7_CPP by
Diff: sensors.h
- Revision:
- 15:be92991621b4
- Parent:
- 10:e58323951c08
diff -r d32d948f7a76 -r be92991621b4 sensors.h --- a/sensors.h Tue Jun 27 17:01:58 2017 +0000 +++ b/sensors.h Fri Jul 14 12:34:22 2017 +0000 @@ -91,7 +91,7 @@ * @param index - The index of the sensor to read (range 0 to 7, clockwise around robot from front-right) * @return Unsigned short of background IR reading (range 0 to 4095) */ - unsigned short get_background_raw_ir_value ( char index ); + char get_background_raw_ir_value ( char index ); /** Returns the stored value of the illuminated side-facing IR sensor value based on last call of store_illuminated_raw_ir_values * Call either store_ir_values() or store_illuminated_raw_ir_values() before using this function to update reading