![]()  | 
  
    PsiSwarm Library
    0.8
    
   | 
 
#include <colour.h>
Public Member Functions | |
| void | set_base_colour_sensor_gain (char gain) | 
| void | set_base_colour_sensor_integration_time (char int_time) | 
| void | enable_base_colour_sensor (void) | 
| void | read_base_colour_sensor_values (int *store_array) | 
| char | IF_check_base_colour_sensor (void) | 
The Colour class contains the functions for reading the base-mounted and top-mounted I2C colour sensors (optional).
| void Colour::enable_base_colour_sensor | ( | void | ) | 
Enable the base colour sensor
Definition at line 40 of file colour.cpp.
| void Colour::read_base_colour_sensor_values | ( | int * | store_array | ) | 
Read the values from the base colour sensor
| Pointer | to 3 x int array for r-g-b values | 
Definition at line 28 of file colour.cpp.
| void Colour::set_base_colour_sensor_gain | ( | char | gain | ) | 
Set the gain of the base colour sensor
| gain | The gain value for the sensor | 
Definition at line 32 of file colour.cpp.
| void Colour::set_base_colour_sensor_integration_time | ( | char | int_time | ) | 
Set the integration time constant for the base colour sensor
| gain | The gain value for the sensor | 
Definition at line 36 of file colour.cpp.