24 #include <interfaces/Laser720Interface.h>
26 #include <core/exceptions/software.h>
45 Laser720Interface::Laser720Interface() : Interface()
47 data_size =
sizeof(Laser720Interface_data_t);
49 data = (Laser720Interface_data_t *)
data_ptr;
55 unsigned char tmp_hash[] = {0xca, 0x5e, 0xf1, 0x60, 0x74, 0x77, 0x8d, 0x9b, 0x5c, 0x81, 0x53, 0x5f, 0xc1, 0xf6, 0x89, 0x69};
60 Laser720Interface::~Laser720Interface()
96 strncpy(data->frame, new_frame,
sizeof(data->frame));
109 return data->distances;
124 throw Exception(
"Index value %u out of bounds (0..720)", index);
126 return data->distances[index];
148 memcpy(data->distances, new_distances,
sizeof(
float) * 720);
163 throw Exception(
"Index value %u out of bounds (0..720)", index);
165 data->distances[index] = new_distances;
177 return data->clockwise_angle;
199 data->clockwise_angle = new_clockwise_angle;
208 "message type for this interface type.", type);
223 memcpy(data, oi->data,
sizeof(Laser720Interface_data_t));