C++ Library for the PsiSwarm Robot - Version 0.8

Dependents:   PsiSwarm_V8_Blank_CPP Autonomia_RndmWlk

Fork of PsiSwarmV7_CPP by Psi Swarm Robot

Embed: (wiki syntax)

« Back to documentation index

Colour Class Reference

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:
Pointerto 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:
gainThe 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:
gainThe gain value for the sensor

Definition at line 36 of file colour.cpp.