feat: 增加通信内容

This commit is contained in:
2024-03-30 11:51:14 +08:00
parent a9b488bc6e
commit add61d0af3
5 changed files with 32 additions and 20 deletions

View File

@@ -42,8 +42,10 @@ static void Exit()
*/
static void Loop()
{
ips200_show_string(0, 20, "outsp:");
ips200_show_float(80, 20, out_speed, 4, 1);
ips200_show_string(0, 0, "sta:");
ips200_show_float(80, 0, in_state, 4, 1);
ips200_show_string(0, 20, "sto:");
ips200_show_float(80, 20, in_stop, 4, 1);
ips200_show_string(0, 40, "angle");
ips200_show_float(80, 40, in_angle, 4, 1);
ips200_show_string(0, 60, "near");
@@ -59,14 +61,14 @@ static void Loop()
ips200_show_string(0, 160, "outpos");
ips200_show_float(80, 160, out_pos, 4, 1);
ips200_show_string(0, 180, "ls");
ips200_show_float(80, 180, pwm_duty_ls, 4, 1);
ips200_show_string(0, 200, "rs");
ips200_show_float(80, 200, pwm_duty_rs, 4, 1);
ips200_show_string(0, 220, "lb");
ips200_show_float(80, 220, pwm_duty_lb, 4, 1);
ips200_show_string(100, 0, "rb");
ips200_show_float(180, 0, pwm_duty_rb, 4, 1);
// ips200_show_string(0, 180, "ls");
// ips200_show_float(80, 180, pwm_duty_ls, 4, 1);
// ips200_show_string(0, 200, "rs");
// ips200_show_float(80, 200, pwm_duty_rs, 4, 1);
// ips200_show_string(0, 220, "lb");
// ips200_show_float(80, 220, pwm_duty_lb, 4, 1);
// ips200_show_string(100, 0, "rb");
// ips200_show_float(180, 0, pwm_duty_rb, 4, 1);
}
/**
* @brief 页面事件