36 uint8_t prev_data_list [21];
41 uint8_t prev_vector_dir;
51 uint8_t command (
const uint8_t cmd);
59 CompoI (
const uint32_t init_port);
68 void begin (
const uint8_t init_i2c_address = 0x02);
uint8_t get_max_idx()
Gets the channel number that reads the strongest IR intensity.
Definition CompoI.cpp:173
uint8_t set_addr_0x02()
Sets I2C address of the module to 0x02.
Definition CompoI.cpp:209
uint8_t get_max_val()
Gets the strongest IR intensity reading among all channels.
Definition CompoI.cpp:177
uint8_t set_addr_0x01()
Sets I2C address of the module to 0x01.
Definition CompoI.cpp:205
uint8_t turn_off_leds()
Disables vector algorithm.
Definition CompoI.cpp:221
uint8_t get_min_val()
Gets the weakest IR intensity reading among all channels.
Definition CompoI.cpp:185
uint8_t get_avg_val()
Gets the mean average IR intensity reading of all channels.
Definition CompoI.cpp:189
uint8_t reset()
Software resets the module.
Definition CompoI.cpp:287
void begin(const uint8_t init_i2c_address=0x02)
Activates this compound eye module.
Definition CompoI.cpp:152
uint32_t read_eeprom()
Gets the EEPROM values.
Definition CompoI.cpp:256
bool test_comm()
Checks whether communication is established.
Definition CompoI.cpp:159
uint8_t set_filter_on()
Turns on the signal filter.
Definition CompoI.cpp:193
uint8_t get_ball_angle()
Gets the ball angle.
Definition CompoI.cpp:229
uint8_t get_channel_val(const uint8_t channel)
Reads the IR intensity of a specific channel.
Definition CompoI.cpp:169
uint8_t calibrate()
Initializes the hardware.
Definition CompoI.cpp:201
uint8_t set_filter_off()
Turns off the signal filter.
Definition CompoI.cpp:197
CompoI(const uint32_t init_port)
Creates a CompoI object.
Definition CompoI.cpp:137
uint8_t get_min_idx()
Gets the channel number that reads the weakest IR intensity.
Definition CompoI.cpp:181
uint8_t turn_on_leds()
Turns on LEDs.
Definition CompoI.cpp:225
Supported_sensor()
Creates an object of a supported sensor.
Definition Supported_sensor.h:23