Browse Source

这里强转为int打印,避免打印值不正确

master
Lizongdi 6 days ago
parent
commit
2d87375934
  1. 4
      project/paint_robot_new/paint_robot_new.c

4
project/paint_robot_new/paint_robot_new.c

@ -129,8 +129,8 @@ static void Custom_ModuleHandler(const Msg_t *pstMsg)
lua_print("CH14_LT \t%d\n", g_stMK32.CH14_LT); lua_print("CH14_LT \t%d\n", g_stMK32.CH14_LT);
lua_print("CH15_RT \t%d\n", g_stMK32.CH15_RT); lua_print("CH15_RT \t%d\n", g_stMK32.CH15_RT);
lua_print("PV Info\n"); lua_print("PV Info\n");
lua_print("RunMode = %d\nRobotSpeed = %d\nLaneChangeDistance = %d\nVertical_Calibration = %d\nIV_IsRestart_Notified = %d\nTimeStamp = %d\n", lua_print("RunMode = %d\nRobotSpeed = %d\nLaneChangeDistance = %d\nVertical_Calibration = %d\nIV_IsRestart_Notified = %d\nTimeStamp = %ld\n",
g_stPV.RunMode, g_stPV.RobotSpeed, g_stPV.LaneChangeDistance, g_stPV.Vertical_Calibration, g_stPV.IV_IsRestart_Notified, g_stPV.TimeStamp); g_stPV.RunMode, g_stPV.RobotSpeed, g_stPV.LaneChangeDistance, (int)g_stPV.Vertical_Calibration, g_stPV.IV_IsRestart_Notified, g_stPV.TimeStamp);
break; break;
} }
default: default:

Loading…
Cancel
Save