This commit is contained in:
机械小鸽 2025-03-03 19:32:14 +08:00 committed by GitHub
parent 63611237d8
commit e18a4586b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2209,8 +2209,8 @@ public:
dy = by + 77;
// 显示巡航设定速度km/h
SubMaster& sm = *(s->sm);
auto carState = sm["carState"].getCarState();
//SubMaster& sm = *(s->sm);
//auto carState = sm["carState"].getCarState();
float setSpeed = carState.getCruiseState().getSpeed() * 3.6; // 转换为 km/h
sprintf(gap_str, "%.0f", setSpeed);
ui_draw_text(s, dx, dy, gap_str, 40, COLOR_WHITE, BOLD);