C++ Library for the PsiSwarm Robot - Version 0.7
Fork of PsiSwarmV7 by
Diff: sensors.h
- Revision:
- 2:c6986ee3c7c5
- Parent:
- 0:d6269d17c8cf
- Child:
- 5:3cdd1a37cdd7
--- a/sensors.h Thu Mar 03 23:21:47 2016 +0000 +++ b/sensors.h Fri Mar 11 13:51:24 2016 +0000 @@ -5,9 +5,9 @@ * (C) Dept. Electronics & Computer Science, University of York * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis * - * PsiSwarm Library Version: 0.4 + * PsiSwarm Library Version: 0.41 * - * February 2016 + * March 2016 * */ @@ -35,6 +35,8 @@ unsigned short get_background_base_ir_value ( char index ); unsigned short get_illuminated_base_ir_value ( char index ); +unsigned short calculate_base_ir_value ( char index ); +unsigned short calculate_side_ir_value ( char index ); int get_bearing_from_ir_array ( unsigned short * ir_sensor_readings); void store_ir_values ( void );