dashboard: calculate battery detail status and estimate

This commit is contained in:
2026-06-19 00:41:04 -06:00
parent 9d11adebd8
commit ef8e02a6a4
2 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
#pragma once #pragma once
static const char *DASHBOARD_VERSION = "0.1.108-battery-detail-layout"; static const char *DASHBOARD_VERSION = "0.1.109-battery-status-estimate";
// Update these if your Cargo ESP AP credentials are different. // Update these if your Cargo ESP AP credentials are different.
//static const char *CARGO_WIFI_SSID = "OverlandController"; //static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -747,7 +747,7 @@ static void create_battery_detail_screen()
lv_obj_t *soc_card = create_card(battery_detail_page, "", 300, 500, LV_ALIGN_TOP_LEFT, 32, 68); lv_obj_t *soc_card = create_card(battery_detail_page, "", 300, 500, LV_ALIGN_TOP_LEFT, 32, 68);
battery_detail_status_label = lv_label_create(soc_card); battery_detail_status_label = lv_label_create(soc_card);
lv_label_set_text(battery_detail_status_label, "BMS --"); lv_label_set_text(battery_detail_status_label, "IDLE");
lv_obj_set_style_text_color(battery_detail_status_label, lv_color_hex(0xB8C0C8), 0); lv_obj_set_style_text_color(battery_detail_status_label, lv_color_hex(0xB8C0C8), 0);
lv_obj_set_style_text_font(battery_detail_status_label, &lv_font_montserrat_26, 0); lv_obj_set_style_text_font(battery_detail_status_label, &lv_font_montserrat_26, 0);
lv_obj_set_width(battery_detail_status_label, 260); lv_obj_set_width(battery_detail_status_label, 260);