Skip to content

Commit

Permalink
more merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver authored and SippieCup committed Apr 18, 2020
1 parent e221ece commit ef1b603
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 37 deletions.
2 changes: 0 additions & 2 deletions selfdrive/ui/bbui.h
Original file line number Diff line number Diff line change
Expand Up @@ -1359,8 +1359,6 @@ void bb_ui_poll_update( UIState *s) {
}

capn_free(&ctx);
// wakeup bg thread since status changed
pthread_cond_signal(&s->bg_cond);
}
if (sock == s->b.uiSetCar_sock) {
//set car model socket
Expand Down
1 change: 0 additions & 1 deletion selfdrive/ui/paint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,6 @@ void ui_draw(UIState *s) {
} else {
nvgScale(s->vg,s->b.scr_scale_x,s->b.scr_scale_y);

ui_draw_blank(s);
if (!s->scene.uilayout_sidebarcollapsed) {
ui_draw_sidebar(s);
}
Expand Down
34 changes: 0 additions & 34 deletions selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -997,40 +997,6 @@ static void* light_sensor_thread(void *args) {
return NULL;
}

static void* bg_thread(void* args) {
UIState *s = (UIState*)args;
set_thread_name("bg");
#if defined(QCOM) || defined(QCOM2)
FramebufferState *bg_fb = framebuffer_init("bg", 0x00001000, false, NULL, NULL);
#else
FramebufferState *bg_fb = framebuffer_init_linux("bg", 0x00001000, false, NULL, NULL, NULL);
#endif
assert(bg_fb);

int bg_status = -1;
while(!do_exit) {
pthread_mutex_lock(&s->lock);
//BB Change of background based on our color
int actual_status = bb_get_status(s);
if (bg_status == actual_status) {
// will always be signaled if it changes?
pthread_cond_wait(&s->bg_cond, &s->lock);
}
bg_status = actual_status;
//BB End of background color change
pthread_mutex_unlock(&s->lock);

assert(bg_status < ARRAYSIZE(bg_colors));
const uint8_t *color = bg_colors[bg_status];

glClearColor(color[0]/256.0, color[1]/256.0, color[2]/256.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);

framebuffer_swap(bg_fb);
}

return NULL;
}

#endif

Expand Down
1 change: 1 addition & 0 deletions start_tbp.sh → start_op_jetson.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
export PYTHONPATH=/data/openpilot
PATH=/data/oprun/.virtualenvs/JetNanoOP/bin:$PATH
cd /data/openpilot/selfdrive
PASSIVE=0 NOSENSOR=1 WEBCAM=1 ./manager.py

0 comments on commit ef1b603

Please sign in to comment.