12 #define ID_IR_FINDER3_0_IN 0x0330
13 #define ID_IR_FINDER3_0_OUT 0x0331
14 #define ID_IR_FINDER3_1_IN 0x0332
15 #define ID_IR_FINDER3_1_OUT 0x0333
16 #define ID_IR_FINDER3_2_IN 0x0334
17 #define ID_IR_FINDER3_2_OUT 0x0335
18 #define ID_IR_FINDER3_3_IN 0x0336
19 #define ID_IR_FINDER3_3_OUT 0x0337
20 #define ID_IR_FINDER3_4_IN 0x0338
21 #define ID_IR_FINDER3_4_OUT 0x0339
22 #define ID_IR_FINDER3_5_IN 0x033A
23 #define ID_IR_FINDER3_5_OUT 0x033B
24 #define ID_IR_FINDER3_6_IN 0x033C
25 #define ID_IR_FINDER3_6_OUT 0x033D
26 #define ID_IR_FINDER3_7_IN 0x033E
27 #define ID_IR_FINDER3_7_OUT 0x033F
29 #define MRM_IR_FINDER3_SENSOR_COUNT 18
32 #define COMMAND_IR_FINDER3_SENDING_SENSORS_1_TO_7 0x04
33 #define COMMAND_IR_FINDER3_SENDING_SENSORS_8_TO_12 0x05
34 #define COMMAND_IR_FINDER3_SENDING_ANGLE_AND_DISTANCE 0x09
36 #define MRM_IR_FINDER3_INACTIVITY_ALLOWED_MS 10000
40 std::vector<uint16_t[MRM_IR_FINDER3_SENSOR_COUNT]>* readings;
41 std::vector<int16_t>* _angle;
42 std::vector<bool>* _calculated;
43 std::vector<uint16_t>* _distance;
50 bool calculatedStarted(uint8_t deviceNumber);
56 bool singleStarted(uint8_t deviceNumber);
73 void add(
char * deviceName = (
char*)
"");
79 int16_t
angle(uint8_t deviceNumber = 0);
87 uint16_t
distance(uint8_t deviceNumber = 0);
100 uint16_t
reading(uint8_t receiverNumberInSensor, uint8_t deviceNumber = 0);
Definition: mrm-ir-finder3.h:39
void testCalculated()
Definition: mrm-ir-finder3.cpp:241
bool messageDecode(uint32_t canId, uint8_t data[8])
Definition: mrm-ir-finder3.cpp:122
void add(char *deviceName=(char *)"")
Definition: mrm-ir-finder3.cpp:23
void test()
Definition: mrm-ir-finder3.cpp:191
int16_t angle(uint8_t deviceNumber=0)
Definition: mrm-ir-finder3.cpp:71
void readingsPrint()
Definition: mrm-ir-finder3.cpp:180
Mrm_ir_finder3(Robot *robot=0, uint8_t maxNumberOfBoards=1)
Definition: mrm-ir-finder3.cpp:8
uint16_t distance(uint8_t deviceNumber=0)
Definition: mrm-ir-finder3.cpp:111
uint16_t reading(uint8_t receiverNumberInSensor, uint8_t deviceNumber=0)
Definition: mrm-ir-finder3.cpp:167
Definition: mrm-robot.h:42
Definition: mrm-board.h:356