Skip to content
Snippets Groups Projects
Commit 4ef7b321 authored by dawehr's avatar dawehr
Browse files

Re-enabling LiDAR reading.

parent b0c58f6e
No related branches found
No related tags found
No related merge requests found
......@@ -49,11 +49,11 @@ int get_sensors(hardware_t *hardware_struct, log_t* log_struct, user_input_t* us
status = imu->read(imu, &raw_sensor_struct->gam);
updateError(&(raw_sensor_struct->gam.error), status);
//status = lidar->read(lidar, &lidar_val);
//updateError(&(raw_sensor_struct->lidar.error), status);
//if (status == 0) {
// raw_sensor_struct->lidar_distance_m = lidar_val.distance_m;
//}
status = lidar->read(lidar, &lidar_val);
updateError(&(raw_sensor_struct->lidar.error), status);
if (status == 0) {
raw_sensor_struct->lidar_distance_m = lidar_val.distance_m;
}
status = of->read(of, &raw_sensor_struct->optical_flow);
updateError(&(raw_sensor_struct->optical_flow.error), status);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment