C++ Library for the PsiSwarm Robot - Version 0.8
Dependents: PsiSwarm_V8_Blank_CPP Autonomia_RndmWlk
Fork of PsiSwarmV7_CPP by
Colour Class Reference
The Colour class contains the functions for reading the base-mounted and top-mounted I2C colour sensors (optional). More...
#include <colour.h>
Public Member Functions | |
void | set_base_colour_sensor_gain (char gain) |
Set the gain of the base colour sensor. | |
void | set_base_colour_sensor_integration_time (char int_time) |
Set the integration time constant for the base colour sensor. | |
void | enable_base_colour_sensor (void) |
Enable the base colour sensor. | |
void | read_base_colour_sensor_values (int *store_array) |
Read the values from the base colour sensor. |
Detailed Description
The Colour class contains the functions for reading the base-mounted and top-mounted I2C colour sensors (optional).
Definition at line 30 of file colour.h.
Member Function Documentation
void enable_base_colour_sensor | ( | void | ) |
Enable the base colour sensor.
Definition at line 40 of file colour.cpp.
void read_base_colour_sensor_values | ( | int * | store_array ) |
Read the values from the base colour sensor.
- Parameters:
-
Pointer to 3 x int array for r-g-b values
Definition at line 28 of file colour.cpp.
void set_base_colour_sensor_gain | ( | char | gain ) |
Set the gain of the base colour sensor.
- Parameters:
-
gain The gain value for the sensor
Definition at line 32 of file colour.cpp.
void set_base_colour_sensor_integration_time | ( | char | int_time ) |
Set the integration time constant for the base colour sensor.
- Parameters:
-
gain The gain value for the sensor
Definition at line 36 of file colour.cpp.
Generated on Tue Jul 12 2022 21:11:24 by 1.7.2