Browse Source

Fix printf format for uint8_t mode/lost fields

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
main
Joe DiPrima 4 weeks ago
parent
commit
4612b07725
  1. 2
      gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/src/g1_deploy_onnx_ref.cpp

2
gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/src/g1_deploy_onnx_ref.cpp

@ -2857,7 +2857,7 @@ class G1Deploy {
"cmd=%.1f/%.1f/%.1f "
"meas=%.1f/%.1f/%.1f "
"tau=%.2f/%.2f/%.2f Nm "
"mode=%d/%d/%d lost=%d/%d/%d\n",
"mode=%u/%u/%u lost=%u/%u/%u\n",
raw_yaw, raw_roll, raw_pitch,
motor_command_tmp.q_target.at(12) * 180.0/M_PI,
motor_command_tmp.q_target.at(13) * 180.0/M_PI,

Loading…
Cancel
Save