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:231
uint8_t set_addr_0x02()
Sets I2C address of the module to 0x02.
Definition CompoI.cpp:267
uint8_t get_max_val()
Gets the strongest IR intensity reading among all channels.
Definition CompoI.cpp:235
uint8_t set_addr_0x01()
Sets I2C address of the module to 0x01.
Definition CompoI.cpp:263
uint8_t turn_off_leds()
Turns off LEDs.
Definition CompoI.cpp:279
uint8_t get_min_val()
Gets the weakest IR intensity reading among all channels.
Definition CompoI.cpp:243
uint8_t get_avg_val()
Gets the mean average IR intensity reading of all channels.
Definition CompoI.cpp:247
uint8_t reset()
Software resets the module.
Definition CompoI.cpp:345
void begin(const uint8_t init_i2c_address=0x02)
Activates this compound eye module.
Definition CompoI.cpp:210
uint32_t read_eeprom()
Gets the EEPROM values.
Definition CompoI.cpp:314
bool test_comm()
Checks whether communication is established.
Definition CompoI.cpp:217
uint8_t set_filter_on()
Turns on the signal filter.
Definition CompoI.cpp:251
uint8_t get_ball_angle()
Gets the ball angle.
Definition CompoI.cpp:287
uint8_t get_channel_val(const uint8_t channel)
Reads the IR intensity of a specific channel.
Definition CompoI.cpp:227
uint8_t calibrate()
Initializes the hardware.
Definition CompoI.cpp:259
uint8_t set_filter_off()
Turns off the signal filter.
Definition CompoI.cpp:255
CompoI(const uint32_t init_port)
Creates a CompoI object.
Definition CompoI.cpp:195
uint8_t get_min_idx()
Gets the channel number that reads the weakest IR intensity.
Definition CompoI.cpp:239
uint8_t turn_on_leds()
Turns on LEDs.
Definition CompoI.cpp:283
Supported_sensor()
Creates an object of a supported sensor.
Definition Supported_sensor.h:23