Skip to content

Commit

Permalink
m2m2 code builds cleanly now. Still is not useful but skeleton of the…
Browse files Browse the repository at this point in the history
… driver is in place and builds cleanly
  • Loading branch information
DingoOz committed Dec 18, 2024
1 parent 6cfdee8 commit 789bccc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions software/ros_ws/src/sensors/src/m2m2_lidar/m2m2_lidar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
namespace
{
// Helper functions that don't need class access
bool validateChecksum(const std::vector<uint8_t>& data)
[[maybe_unused]] bool validateChecksum([[maybe_unused]] const std::vector<uint8_t>& data)
{
// Implementation of checksum validation
return true; // Placeholder
}

uint16_t calculateChecksum(const std::vector<uint8_t>& data)
[[maybe_unused]] uint16_t calculateChecksum([[maybe_unused]] const std::vector<uint8_t>& data)
{
// Implementation of checksum calculation
return 0; // Placeholder
Expand Down Expand Up @@ -220,8 +220,7 @@ namespace sensors
}

// We also need to implement the parsing methods
std::optional<sensor_msgs::msg::LaserScan> Lidar::parseLaserScanData(
const std::vector<uint8_t>& data)
std::optional<sensor_msgs::msg::LaserScan> Lidar::parseLaserScanData([[maybe_unused]] const std::vector<uint8_t>& data)
{
sensor_msgs::msg::LaserScan scan;
// This is a placeholder implementation
Expand All @@ -237,8 +236,7 @@ namespace sensors
return scan;
}

std::optional<sensor_msgs::msg::Imu> Lidar::parseImuData(
const std::vector<uint8_t>& data)
std::optional<sensor_msgs::msg::Imu> Lidar::parseImuData([[maybe_unused]] const std::vector<uint8_t>& data)
{
sensor_msgs::msg::Imu imu;
// This is a placeholder implementation
Expand Down

0 comments on commit 789bccc

Please sign in to comment.