Skip to content

Commit

Permalink
Fix broken log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Oct 20, 2023
1 parent eff6fd2 commit c4899e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/network/MissionControlProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ void MissionControlProtocol::handleJointPowerRequest(const json& j) {
void MissionControlProtocol::sendRoverPos() {
auto imu = robot::readIMU();
auto gps = gps::readGPSCoords();
log(LOG_DEBUG, "imu_valid=%d, gps_valid=%d\n", util::to_string(imu.isValid()),
util::to_string(gps.isValid()));
log(LOG_DEBUG, "imu_valid=%s, gps_valid=%s\n", util::to_string(imu.isValid()).c_str(),
util::to_string(gps.isValid()).c_str());
if (imu.isValid()) {
auto rpy = imu.getData();
Eigen::Quaterniond quat(Eigen::AngleAxisd(rpy.roll, Eigen::Vector3d::UnitX()) *
Expand Down

0 comments on commit c4899e4

Please sign in to comment.