Commit Graph

48 Commits

Author SHA1 Message Date
Adeeb Shihadeh
cdfb090c7a Wunused (#1841)
* enable Wunused, first pass

* unused stuff in snpe model

* these are used on phone

* handle sigint and sigterm in modeld

* fix phone build

* camera qcom

* QCOM build works

* delete unused camerad vars

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831
2020-07-09 09:25:32 -07:00
Dean Lee
9c33f51990 remove offroadLayout from sm (#1846)
old-commit-hash: 11fbe85c14
2020-07-08 21:24:55 -07:00
Dean Lee
fa06882a72 better update_offroad_layout_state (#1808)
apply review suggestion
old-commit-hash: 9de015f588
2020-07-03 12:52:43 -07:00
Adeeb Shihadeh
219b117c21 fix hardcoded frequencies in UI
old-commit-hash: 2f16349c4c
2020-07-03 12:30:47 -07:00
Adeeb Shihadeh
d10d3287a3 remove unused UI variables
old-commit-hash: e8259895f7
2020-06-29 14:12:28 -07:00
Adeeb Shihadeh
3d56b4cc35 better alert when controls takes too long to start
old-commit-hash: f8ce6502a9
2020-06-23 16:07:10 -07:00
Willem Melching
31e0931cee ui, fix vision_seen when starting with camerad already running
old-commit-hash: 99949cc27d
2020-06-23 15:16:55 -07:00
Adeeb Shihadeh
ab66589a46 fix engage/disengage sounds
old-commit-hash: 51b7dc0e38
2020-06-23 10:50:24 -07:00
Adeeb Shihadeh
4c19a49586 Fix some alert sounds not repeating (#1763)
* fix sounds not repeating

* fix PC build

* 3 loop

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: af22b282ff
2020-06-22 19:22:02 -07:00
Adeeb Shihadeh
dd3247d128 Alert when controls fails to start (#1750)
* alert when controls fails to start

* more friendly

* fix sound

* remove that

* just else

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 968443c545
2020-06-19 19:28:56 -07:00
Dean Lee
dffb9800ad Sound refactor (#1589)
* Soud refactor

* remove files from  files_common

* add timeout to set_volumn

* add param volume to init

* done

* test.cc

* fix typo

* add repeat param instead of loop

* revert submodule

* add member function currentSound

* remove function create_player from class member

* fix build error

fix repeat

* rename CHECK_RESULT to ReturnOnError

* set currentSound_ before posible err

* use std::map to initialize sound table

cleanup

cleanup

cleanup

fix bug in stop

change paramater name

* done

* remove function CreatePlayer, create player in init()

* resolve conflict

* remove sound test

* rebase

* remove whitespace

* Apply great review suggestion

* use player's SLVolumeItf interface to set volume

* use float

* leave the volume control the way it is
old-commit-hash: 8cacc14b31
2020-06-15 15:26:38 -07:00
George Hotz
5d069eb8c3 Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 344a9a3699
2020-06-11 18:21:59 -07:00
Dean Lee
0f9202c4b7 add set_brightness in framebuffer.h (#1659)
old-commit-hash: 8ad1135e80
2020-06-10 10:28:18 -07:00
Dean Lee
36ee93e0fe remove function is_leon (#1660)
old-commit-hash: 5fdb60d43e
2020-06-08 17:24:55 -07:00
George Hotz
4b6c80336b Getting PC openpilot working again (#1650)
* fixup keras_runner to work and be nicer

* truncate the lane lines based on the valid len
old-commit-hash: 7770041f92
2020-06-05 17:40:56 -07:00
Dean Lee
92b5c00d0e ui.cc: remove variables from UIScene, use event::Reader to get data (#1585)
* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space
old-commit-hash: d720f28ecb
2020-06-05 15:33:45 -07:00
Willem Melching
f9036398e8 ui.cc: read_db_value is not null terminated
old-commit-hash: 884b327374
2020-06-01 16:41:04 -07:00
Dean Lee
32fa3e26be Template version of read_param (#1593)
old-commit-hash: c9dbaf821c
2020-06-01 14:30:53 -07:00
Dean Lee
7db5410f10 UI: better read_model (#1586)
* update model struct inplace

* refer params

* pass path by refer
old-commit-hash: 108a13ead8
2020-05-28 15:10:49 -07:00
Willem Melching
56bddd9105 Fix #1566, athena status flicker in sidebar
old-commit-hash: 4de2c57bd1
2020-05-26 13:41:02 -07:00
Willem Melching
91f1082394 -Werror (#1567)
* werror

* -Wno-inconsistent-missing-override

* Silence ffmpeg deprecation warnings

* add some more pragmas to ignore warnings

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 50f3f1d335
2020-05-26 13:27:01 -07:00
Dean Lee
38e7d99d2f change light_sensor to atomic variable (#1560)
old-commit-hash: b3ab7ae392
2020-05-26 09:59:49 -07:00
Willem Melching
7f0b3180a4 Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: ab5af232b2
2020-05-21 16:04:33 -07:00
Jason Young
30e1e9f91c Make timeout setting code reachable (#1509)
old-commit-hash: d8d490ef6d
2020-05-14 13:03:47 -07:00
Willem Melching
83d02c8c4a Don't show "no gps" when ubloxd is not running (#1479)
* dont show no gps when ubloxd is not running

* Just s

* Dropped that

* Connected is too long
old-commit-hash: f7c8707bf8
2020-05-08 21:04:55 -07:00
robbederks
5a12fc32e7 Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
old-commit-hash: 71bebc4fca
2020-05-08 19:39:18 -07:00
Dean Lee
90af65c41c UI: move c-capnp to c++ (#1455)
* ui:move c-capnp to c++

* move Subsockets into vector

* rename reader to msg

include cereal/gen/cpp/log.capnp

* fix some errors

restore some changes

restore previous

* cleanup codes

cleanup codes

* remove unused variable alert_size

* handle capnproto's enum in a robust way

add break to default

* switch -> std:map

* use static std::map instead of switch

do cleanup

* fix wrong variable name

* use FlatArrayMessageReader instead of custom MessageReader

remove messagehelp.h

Revert "use FlatArrayMessageReader instead of custom MessageReader"

This reverts commit 57d8b6b1e2b4bad908246f35eb068535b1627167.

use FlatArrayMessageReader instead of custom MessageReader

add header file

remove capnp_c lib,add kj lib

include serialize.h

fix

remove duplicate includes
old-commit-hash: ee725534bb
2020-05-06 08:38:26 -07:00
Dean Lee
7f561f2d3d close sensors when it's done (#1367)
old-commit-hash: 24495a2278
2020-04-17 15:52:40 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b4
2020-04-15 16:48:44 -07:00
andyh2
f7e3d8349d offroad/ui: Fix layout bugs (offroad drawing on top, settings open after drive)
old-commit-hash: 76052865cd
2020-04-13 08:53:52 -07:00
Willem Melching
ce4958dc3a ui.cc: use thermald to decide when to go onroad (#1351)
* use thermald to decide when to go onroad

* Check for stopped

* set alert timeout to 0 when going offroad

* set controls seen to false

* Don't mark as seen when already stopped

* Don't process controlsState when stopped

* Needs free

* Small cleanup

* Remove that again

* Process controlsState when started

* Need that back
old-commit-hash: 54d8f9c27b
2020-04-10 16:12:39 -07:00
George Hotz
24f5831a94 Remove bg_thread from ui (#1347)
* remove bg_thread

* debug print app

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ef8aaa77b7
2020-04-09 20:55:54 -07:00
Andy
3879963b5a offroad/ui: Transparent layout mode and msgq-based layout control (#1337)
* offroadLayout

* replace broadcasts with offroadLayout socket

* apk

* set 'none' layoutstate for transparent offroad

* refactor, hide offroad when vision connected

* apk supporting transparency

* reset layout state when stopping

* apk

* cleanup includes

* permit offroad to mangae sidebar state only when vision disconnected

* apk

* use c-capnp

* always upd

* send that too

* sync layout state with offroad

* apk

* fix regression in onboarding (mock engage green border)

* apk

* bump apks

* simplify event processing

* bump cereal to master

* in case ui exited in a bad state

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 35b34fb700
2020-04-09 19:28:11 -07:00
Andy
e43b40540d Sidebar Connectivity Status (#1268)
* store athena connected-at time

* refactor

* deref

* dt import

* Athena status based on last ping time param

* upd test for pingtime

* lower error timeout
old-commit-hash: 41bb3ac7ca
2020-04-05 11:06:49 -07:00
George Hotz
fedd440066 fix offroad processing events in bg (#1266)
* fix offroad processing events in bg

* first run of ui

* actually, we don't need that at all

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f0779d86e4
2020-03-23 14:16:51 -07:00
Willem Melching
897d9ff1e2 camerad zmq_poll, also recover from EAGAIN
old-commit-hash: e69e0486ff
2020-03-17 13:40:07 -07:00
Willem Melching
9fd08dd1e2 No logging on EINTR, and log all the errnos
old-commit-hash: a4c94128c2
2020-03-16 14:58:21 -07:00
Willem Melching
f260ab4d94 Add logging to poll EINTR handling, add another catch in camerad/main.cc
old-commit-hash: 439b4625b6
2020-03-16 14:55:12 -07:00
Andrew Valish
013111e8d0 filter ublox packets for sidebar (#1233)
old-commit-hash: fa7abadc80
2020-03-11 14:28:29 -07:00
Andrew Valish
20816d909d Refactor frame (#1192)
* start drawing new sidebar, add assets

* add thermal to ui, draw network_type and battery

* draw sidebar metrics, add freeSpace and paTemp

* draw static panda metric and network strength, start ubloxGnss messaging

* use array for network_img

* start sidebar touch events

* prevent multiple touch events with touch_timeout

* filter old touches, isolate sidebar events

* add hwType check with timeout for panda metric

* cleanup touch poll, handle vision touch, remove frame and black apks

* cleanup per willem comments

* update offroad, only read active_app from cereal

* tweak sidebar behavior, show active app status

* update offroad apk

* read networkstrength from thermal in sidebar
old-commit-hash: 5ba6beed17
2020-03-09 19:13:32 -07:00
Adeeb
65a2c62114 Abstract common events + event cleanup (#1129)
* too many if

* unused

* whitespace

* key

* sefldrive/car/*

* no more gctx

* lower

* start abstracting common events

* all cars

* start small

* all cars

* reverse gear

* wrongCarMode

* wrongGear

* espDisabled

* steerUnvailable

* make linter happy

* c isn't used

* fix esp_disabled in VW

* update ref

* more red

* more cleanup

* fix subaru

* update ref

old-commit-hash: e8cb6ea06a
2020-02-20 16:22:25 -08:00
Arne Schwarck
2b79e60cd7 Draw leadTwo chevron in ui (#1133)
* Add leadTwo

* Add leadTwo

* Draw leadTwo car indicator

* Reuse leaddatad

* refactor draw_lead

No idea if this is the correct syntax

* Python is too good to us

Add ;

* Only show if more than 3m apart

* Delete unused scene

old-commit-hash: 175243af40
2020-02-20 14:27:11 -08:00
Arne Schwarck
d034708be3 Subsock no longer exsists (#987)
* Subsock no longer exsists

use the new SubSocket as SubSock has been removed

* fix poller syntax

update to the new syntax and remove unused messaging library

old-commit-hash: 855abbd99e
2020-01-21 11:25:12 -08:00
George Hotz
7e639d98aa selfdrive/ui
old-commit-hash: aeb2fff068
2020-01-17 11:05:23 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher
fa4b6f33d1 openpilot v0.7.1 release
old-commit-hash: 8da8b6135c
2020-01-15 14:05:04 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00
Vehicle Researcher
b713eae9f8 openpilot v0.6.6 release
old-commit-hash: d7f0b402a8
2019-11-04 15:13:52 -08:00