mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 04:42:13 +08:00
remove unused UI variables
old-commit-hash: e8259895f7d29b153aa2d5e9c86391f47413a133
This commit is contained in:
@@ -154,7 +154,6 @@ static void update_track_data(UIState *s, bool is_mpc, track_vertices_data *pvd)
|
||||
const float *mpc_x_coords = &scene->mpc_x[0];
|
||||
const float *mpc_y_coords = &scene->mpc_y[0];
|
||||
|
||||
bool started = false;
|
||||
float off = is_mpc?0.3:0.5;
|
||||
float lead_d = scene->lead_data[0].getDRel()*2.;
|
||||
float path_height = is_mpc?(lead_d>5.)?fmin(lead_d, 25.)-fmin(lead_d*0.35, 10.):20.
|
||||
@@ -325,7 +324,6 @@ static void update_all_lane_lines_data(UIState *s, const PathData &path, model_p
|
||||
|
||||
static void ui_draw_lane(UIState *s, const PathData *path, model_path_vertices_data *pstart, NVGcolor color) {
|
||||
ui_draw_lane_line(s, pstart, color);
|
||||
float var = fmin(path->std, 0.7);
|
||||
color.a /= 25;
|
||||
ui_draw_lane_line(s, pstart + 1, color);
|
||||
ui_draw_lane_line(s, pstart + 2, color);
|
||||
|
||||
@@ -63,7 +63,6 @@ static void ui_draw_sidebar_network_type(UIState *s) {
|
||||
const int network_x = !s->scene.uilayout_sidebarcollapsed ? 50 : -(sbr_w);
|
||||
const int network_y = 273;
|
||||
const int network_w = 100;
|
||||
const int network_h = 100;
|
||||
const char *network_type = network_type_map[s->scene.thermal.getNetworkType()];
|
||||
nvgFillColor(s->vg, COLOR_WHITE);
|
||||
nvgFontSize(s->vg, 48);
|
||||
|
||||
+1
-2
@@ -115,7 +115,7 @@ static void handle_sidebar_touch(UIState *s, int touch_x, int touch_y) {
|
||||
}
|
||||
|
||||
static void handle_driver_view_touch(UIState *s, int touch_x, int touch_y) {
|
||||
int err = write_db_value("IsDriverViewEnabled", "0", 1);
|
||||
write_db_value("IsDriverViewEnabled", "0", 1);
|
||||
}
|
||||
|
||||
static void handle_vision_touch(UIState *s, int touch_x, int touch_y) {
|
||||
@@ -633,7 +633,6 @@ static int vision_subscribe(int fd, VisionPacket *rp, VisionStreamType type) {
|
||||
}
|
||||
|
||||
static void* vision_connect_thread(void *args) {
|
||||
int err;
|
||||
set_thread_name("vision_connect");
|
||||
|
||||
UIState *s = (UIState*)args;
|
||||
|
||||
Reference in New Issue
Block a user