Commit Graph

1439 Commits (528b87473a81122f6ab361fb1dab1c032cd38876)

Author SHA1 Message Date
ZwX1616 6b020241c9
Clean up and test camerad refactor (#2310)
* refactor

add function get_camerabuf_by_type

remove cl_free

use camera_id

move front stuff into frontview_thread

bigger refactor

more

typo

rename camerabuf *c to *b

cleanup header files

remove wideview_thread

camera_qcom.c to c++

fix SConscript

camera_process_buf

space

sendrgb same with before

do autoexposure in processing_thread

correct sendrgb

add camera_common.cc

move yuv_transform to CameraBuf

* use C to keep consitent

* rebase master

* rebase master

* continue refactor

* refactor all camera related data&function out of main

 done

* cleanup

* -use buf.rgb_width&height

* remoe ,

* rebase master

* remove unused std::vector

* add func common_camera_process_front

* fix max

* fix sendrgb

* less crap being logged

* fix indents

* add back thumbnails

* thumbnail fixed on tici

* junk junk junk

* unify api

* fix ptr ref

* lol!

* cleanup

* more simplified

* typos

* remove terminate

* use standard polling

* ops_thread refactor, too much code!

* fix build

* ok

* assert

* listen

* incl more

* wq!

* fix more build

* macos

* fix exp targets

* front is different

* const

* bye

* remath

* remove irrelevant

* do ops in a thread

* fix init

* return null

* QCOM2 ops

* qcom2 build

* missing comma

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-16 21:58:05 -07:00
VirtuallyChris c5ec96680f 2020 Ridgeline fw 2020-10-16 17:50:46 -07:00
Adeeb Shihadeh f4e18e0b74
Build openpilot with webcam support in CI (#2070) 2020-10-16 15:16:17 -07:00
VirtuallyChris 35ad3775ed Add Ridgeline 2020 camera fw 2020-10-16 15:11:35 -07:00
Willem Melching 442f2543e3
tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
2020-10-15 20:48:05 +02:00
Willem Melching a1fd08c1e1
Add logs for why start was blocked (#2312) (#2346)
* Add logs for why start was blocked

* adding wrapper and prev offroad alert state

* Small updates and fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Moving to dict of startup conditions

* Fixing dict access

* add type for dict

* remove global

* Use cloudlog event

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Fix driverview and snapshot start

* not always log

* Cleanup update alerts

* Only ignition needs init

* Fix typing

Co-authored-by: Logan Lasiter <lasiterlogan@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-15 15:47:38 +02:00
Comma Device 4e2f9d915f fix encoder build 2020-10-15 11:23:42 +00:00
Willem Melching 3dd9448981
Params path only in one place (#2344)
* fix params paths

* Qcom & qcom2

* This env variable is not used anywhere

* params path in only one place

* fix other PARAMS_PATH references

* absolute path is probably better
2020-10-15 13:15:22 +02:00
Adeeb Shihadeh 725e3b78ea
HKG fixups (#2342)
* fix hyundai blinker state

* consistency with update_speed

* update refs

* make hyundai resume reliable

* update refs

* 20 works

* don't need that

Co-authored-by: Greg Hogan <gregjhogan@gmail.com>
2020-10-14 18:27:27 -07:00
Adeeb Shihadeh ae4b4bd125
Alert cleanup (#2274)
* no more focus recover active

* consistency

* more permanent

* dm alerts

* sanity check test

* no please

* clean that up

* update refs

* one more

* bump cereal
2020-10-14 15:56:18 -07:00
Adeeb Shihadeh 1c6905cac1
clear irrelevant alerts on state transition (#2318)
* cleanup

* clear warnings

* more types

* needs refactor

* update refs

* update refs
2020-10-14 14:08:15 -07:00
Adeeb Shihadeh 707a670f42
fix params on PC and when reading path from env (#2340)
* fix params when reading path from env

* fix pc
2020-10-14 13:45:24 -07:00
Andre Volmensky a1037b5334
Nissan Rogue 2018 (#2336)
* Added Nissan Rogue 2018 fingerprint

* Merged Nissan Rogue fingerprints. Updated README.md
2020-10-14 11:03:40 -07:00
Adeeb Shihadeh 6f307ea4c5 fix params permissions after refactor 2020-10-13 19:14:51 -07:00
VirtuallyChris dc68057263 was supposed to be on branch 2020-10-13 15:30:57 -07:00
VirtuallyChris fd563e17d6 Add more Rav4 fw 2020-10-13 15:28:48 -07:00
Adeeb Shihadeh 6bc6db5f7a
don't show giraffe alert with relay (#2335)
* who has a giraffe still?

* not black
2020-10-13 12:42:04 -07:00
Willem Melching ce85e402f4
Fix lane change when blinker is turned off early (#2324) 2020-10-13 17:42:29 +02:00
Willem Melching 2e182e5c57
Params refactor, simplified (#2300)
* always c++

* Create C++ params class

* get works

* tests hang now

* passes tests

* cleanup string formatting

* handle interrupt in blocking read

* fix memory leak

* remove unused constructor

* Use delete_db_value directly

* Rename put -> write_db_value

* filename cleanup

* no semicolons in cython

* Update common/SConscript

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* add std::string version of delete_db_value

* This is handled

* cleanup encoding

* Add clear method to clear all

* add persistent params

* fix android build

* Should be called clear_all

* only import params when needed

* set params path on manager import

* recusrively create directories

* Fix function order

* cleanup mkdirp

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-13 16:23:23 +02:00
Willem Melching a4ccfcffe8
Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

* Add include for usleep
2020-10-13 16:01:07 +02:00
grekiki fc1d01be81
add caching to CI tests (#2269)
* first caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* caching attempt

* dump logs

* does this work?

* Create cache folder

* Print folder contents

* Fix volume mount

* Update test.yaml

* add removed tests

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* reduce diff

* readd coverage upload

* Update test.yaml

* add more caching

* Use hash of test file to compute cache key

* add cache to valgrind tests

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Update .github/workflows/test.yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* Also hash workflow yaml

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-10-13 15:38:13 +02:00
VirtuallyChris f10497a75d
Add Nissan Leaf 2020 (#2311)
* Add 2020 Leaf fingerprint

* Split fingerpints

* un-merge fingerprints
2020-10-12 16:30:34 -07:00
Adeeb Shihadeh ee37d03c1f
remove hotspot exceptions in uploader (#2319)
* remove hotspot exceptions

* skip net check while onroad
2020-10-12 13:12:01 -07:00
Willem Melching 0365db20d8
Update 2020 Hyundai Palisade FW versions (#2322)
* add fw versions

* carParams is sometimes not in first segment

* Update can fingerprint
2020-10-12 15:57:06 +02:00
eFini ea81d36c41
white/grey/black pandas still have power ctrl function (#2308) 2020-10-12 13:58:36 +02:00
grekiki 870644b59e
Process replay for C++ daemons (#2288)
* more like a stash

* mem

* comment cpp

* remove some tests

* WORKSpython test_processes.py python test_processes.py

* all tests work, time to clean up

* initialize cleanup

* fix spaces

* refactor

* Update selfdrive/test/process_replay/process_replay.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* revert debug change

* mini refactor

* remove submaster

* update README

* add delay

* check for missaligned start

* Update compare_logs.py

* should finally work now, I hope...

* update comment

* real fix

* real fix now

* fix styling

* fix styling

* Update process_replay.py

* fix code review

* speed up tests

* Update selfdrive/test/process_replay/process_replay.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/test/process_replay/process_replay.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* fix reviews

* nicer code

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-12 11:18:53 +02:00
Dean Lee 8fc9cfea38
fix webcam build error (#2320) 2020-10-11 22:45:19 -07:00
vanillagorillaa b47f8be0ec
RAV4TSS2: Additional fw (#2317) 2020-10-11 12:06:34 -07:00
Adeeb Shihadeh d5796e07e2
more accurate profiling (#2287) 2020-10-10 15:17:02 -07:00
VirtuallyChris 4953fb8668 Add Sienna engine fw 2020-10-09 19:20:22 -07:00
Afshin1354 fe40cd4ff1
2018 Lexus RX 350 engine fw (#2306)
* Update values.py

Add FINGERPRINT and carFw for 2018 LEXUS RX 350.

* Removed 2018 RX 350 Fingerprints but left engine in there.
2020-10-09 18:54:32 -07:00
ZwX1616 cb58e79ee8
Test camerad in CI (#2297)
* remove unused junk

* check frame pkts

* from magic

* self

* cleanup

* add todo

* no opencv

* run in J

* fix conv

* make 250x faster

* abs

* should be +1

* depends on starting phase

* block on furniture refactor

* fixed

* restart test

* check ex

* need scaling
2020-10-09 16:31:25 -07:00
ZwX1616 00b642146f
tici camera art II (#2223)
* protect highlights

* fix modeld scale factor

* rewrite logic for accurate and smooth AE

* fix condition

* tune speed

* move to qcom2

* not exactly 2x

* avoid hunting due to ettr policy

* tune to new curve

* gain kickdowns

* log params

* 4x legroom

* no limit needed here

* simple lowpass

* tweak

* pin to a remote core

* speedup AE and lower night exp

* this curve makes more sense

* tuning from fleet data

* fix ui

* only qcom2

Co-authored-by: Comma Device <device@comma.ai>
2020-10-09 16:26:43 -07:00
Adeeb Shihadeh cb85a19350 add timeout to modeld replay 2020-10-09 16:25:21 -07:00
Adeeb Shihadeh de75992c48 remove unused img 2020-10-09 15:48:05 -07:00
Adeeb Shihadeh 024c33e724 add acura rdx test route 2020-10-09 13:57:58 -07:00
ZwX1616 84e83e88a3
Fix dcamera inaccurate fps on OP3T and LP3 (#2305)
* fix op3t pclk

* fix leeco fps
2020-10-09 11:26:32 -07:00
Willem Melching cfd16faad2
boardd always send can packet (#2307)
* boardd always send message

* Only log missed cycles when ignition is on

* Just clip, no completely different code paths
2020-10-09 12:45:43 +02:00
Adeeb Shihadeh 671183184b
UI cleanup + startup time improvement (#2295) 2020-10-08 19:29:56 -07:00
ZwX1616 80515576d5
Upgrade to SNPE 1.41.0 (#2285)
* snpe 1.41.0

* cleanup

* unignored

* where is my symphony

* add snpe/dsp to release files

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-08 17:18:01 -07:00
Willem Melching 018267dfec Add sonata engine FW 2020-10-08 21:17:10 +02:00
Willem Melching f65733f744 update sonata fingerprint 2020-10-08 21:13:39 +02:00
Shane Smiskol 6133f603f0
Use math instead of numpy for calculating TTC, on average 80% faster (#2293)
* Use math instead of numpy, on average 80% faster

* whoops
2020-10-08 14:23:53 +02:00
Willem Melching b682ebc022
fix loggerd rotate (#2291) 2020-10-07 16:59:32 -07:00
Willem Melching 2e739aa77c Fix gyro field name 2020-10-07 13:43:35 +02:00
Logan Lasiter 1a2efdc139
Present alert if fan isn't spinning (#2258)
* Present alert if fan isn't spinning

* allow entry

* Small updates

Moving to fan malfunction event

Only trigger event for uno or dos

* Changed checking fanSpeed > 50%

* Update text for fan malfunction alert.

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Alert if fan isn't spinning for 5 sec

* Alert edit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-07 12:15:09 +02:00
Adeeb Shihadeh 87942eea1c
remove green temp processes (#2286) 2020-10-07 12:11:54 +02:00
Adeeb Shihadeh bd4a1f291d cleanup duplicate function 2020-10-06 23:59:16 -07:00
Adeeb Shihadeh 38a23a55ec add offroad to cpu usage script 2020-10-06 21:12:38 -07:00
Adeeb Shihadeh f1c3662311 report git branch to testing closet 2020-10-06 21:00:19 -07:00
ZwX1616 e29fd90058 loggerd does not need to babysit this 2020-10-06 18:46:22 -07:00
Willem Melching 079c878adf Update radard cpu usage 2020-10-06 12:16:12 +02:00
Adeeb Shihadeh 81763a18b5
fix not going onroad on clean dashcam install (#2280) 2020-10-06 11:10:45 +02:00
Adeeb Shihadeh 176c06499d write car params before profiling 2020-10-05 21:34:57 -07:00
Adeeb Shihadeh 6709106025 don't want to profile that 2020-10-05 20:48:23 -07:00
Adeeb Shihadeh 0d11acf34e paramsd profiling 2020-10-05 20:41:24 -07:00
Willem Melching 3f88df62c7
Fix calibration invalid alert on startup (#2270)
* change controlsd calibration initial value

* update refs

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-05 19:16:52 -07:00
Adeeb Shihadeh 70bc935210 bump cereal 2020-10-05 18:43:21 -07:00
ZwX1616 55351859a7
transient considerations (#2276) 2020-10-05 15:41:17 -07:00
ZwX1616 21d4ac1eeb
Reduced wheel touch time (#2259)
* decrease wheel touch time

* update refs

* fix unittest

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-05 14:39:24 -07:00
Willem Melching e51da619c1
LSM6DS3 (#2268)
* add initial lsm6ds3 setup

* accel works

* ignore lsm6ds3 in locationd

* add gyro

* add temp

Co-authored-by: Comma Device <device@comma.ai>
2020-10-05 16:16:25 +02:00
grekiki a09fd7c860
CI: Add valgrind (#2245)
* prepare a test for valgrind by fixing linter issues

* something went wrong

* Try update cereal

* Not working, fixing replay_learning.py

* Testing

* Testing

* Working now

* More logs, a bit of cleaning, still no idea how this works

* Ok got 10% cleaning done

* trying some stackOverflow code

* Lots of cleaning

* wip

* Delete valgrind_testing.py

* Delete replay_learning.py

* Add to CI, cannot fail though

* Add to CI, cannot fail though

* Now the unit test should fail

* Dump valgrind output in case of a failure

* fix subrepos

* fix subs

* hopefully fixes every issue that we have

* wait for message confirmation

* Revert "wait for message confirmation"

This reverts commit ad7ba280ec.

* fix local issues

* Revert "fix local issues"

This reverts commit 4498df21df.

* attempt 3 to fix things

* untested function extraction

* refactor

* add valgrind task

* add delay and BASEDIR

* Make test not fail, it is not designed for that

* fix subrepositories

* fix tests

* Real fix now :)

* scons

* ... stupid CI

* fix valgrind CI

* Update test.yaml

* Update test.yaml

* Update test.yaml

* add valgrind logs as file

* remove delays

* kill process more reliably

* rename action

* small cleanup

* fix casting to int in case of large leaks

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-10-05 16:09:32 +02:00
Adeeb Shihadeh a77548bff6
radard cleanup (#2266)
* some cleanup

* more realistic profiling

* Update selfdrive/controls/radard.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-10-05 11:37:39 +02:00
Adeeb Shihadeh df6a66c785
radard profiling (#2265) 2020-10-04 15:55:25 -07:00
Willem Melching 8e0bb6a7ce
Fix MacOS CI (#2145)
* compile flag for cython

* fix more setups

* bump cereal

* reenable mac build

* don't let that fail the build

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-10-04 15:03:20 -07:00
Adeeb Shihadeh 06cb2f963d
UI: refactor light sensor (#2129)
* refactor light thread

* qcom low power mode

Co-authored-by: Comma Device <device@comma.ai>
2020-10-03 20:58:46 -07:00
Adeeb Shihadeh 47a42ff432 bump version to 0.7.10 2020-10-03 14:51:47 -07:00
ZwX1616 2b974150c4
Refactor loggerd rotations (#2247)
* loggerd:refactor rotate encoder

* change notify_all to notify_one

* finish

* cancelWait

* start front_encoder_thread on need

* rebase master to resolve conflict

* tici qcam works, but

* ifs are ugly

* synced rotate off frame ids

* only start counting frames after modeld alive

* typo

* fix some bugs

* never over rotate

* works

* missing space

* zero frame count tolerance

* lol

* add back omx race protection

* not need that

* not to confuse different locks

* playing with locks is playing with fire

* tici now has qcam

* size is overrated

* make cppcheck happy

* fall back if no camera

* warn

* missing condition

* first is freestyle

* no stream id before connecting

* wait for increment

* first will be imperfect

* wait is futile

* block frames when writing state

* just log write time

* exit loops when exit

* tici qcamera

* fixed

* add atomics

* incl

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-03 07:56:16 -07:00
Adeeb Shihadeh 059cf6b43e
Run all driving processes on cores 2-3 (#2257) 2020-10-02 17:18:18 -07:00
Adeeb Shihadeh 38ded9b1e7
Tici updated (#2126)
* run updated on tici

* do this for now

* two didn't like empty string

* fix permissions
2020-10-02 16:36:20 -07:00
Adeeb Shihadeh 427d4a5a9e
run loggerd tests in CI (#2241)
* run loggerd tests in jenkins

* fast

* check segs on the fly

* missing import

* wait for dir

* no thread

* relax FILE_SIZE_TOLERANCE

* cleanup

* unused

* set ci flag

* wait longer for first seg

* fix race condition with setting RecordFront

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-10-01 18:42:43 -07:00
Adeeb Shihadeh 67aec50b88
Increase HKG torque limit (#2249)
* increase hkg torque limit

* update refs

* bump panda
2020-10-01 13:16:51 -07:00
Willem Melching 1c6fb56769 simplify testing closet client 2020-10-01 16:01:34 +02:00
Comma Device 3f0491b7e5 update testing closet client 2020-10-01 06:52:59 -07:00
Adeeb Shihadeh 2a2cfd6bb5 updated: remove old overlay init file 2020-09-29 21:26:27 -07:00
Adeeb Shihadeh 9060d3c87b fix paths for waste3 debug script 2020-09-29 15:51:58 -07:00
Dean Lee 209e7aa471
fix resource leak when rotating encoder (#2141) 2020-09-29 13:53:32 -07:00
Adeeb Shihadeh 3f40a9ee75
updated: log git corruption (#2242)
* log git corruption

* better cloudlog
2020-09-29 12:08:55 -07:00
Adeeb Shihadeh 98fedff6b1 add ECU disable script from #1459 2020-09-29 11:54:29 -07:00
Greg Hogan 0902575e34
pre-reqs for honda bosch longitudinal control (#1458)
* pre-reqs for honda bosch longitudinal control

* openpilot_longitudinal_control -> radar_disabled

* fix chrysler test

* review feedback

* little cleaner

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-29 00:04:15 -07:00
cydia2020 6d5b2af3f2
add 1 second delay to acc pedal alert (#2221)
So that the screen wouldn't appear to "flicker" when openpilot is engaged while the acc pedal is being released
2020-09-28 16:17:21 -07:00
Adeeb Shihadeh 2490be762d
tici light sensor (#2238) 2020-09-28 14:49:07 -07:00
qadmus cba53957bd
Fix grade force in test_long plant (#2225)
Co-authored-by: user <email@web.com>
2020-09-28 11:54:48 +02:00
Dean Lee 9983389ffe
close lock_fd if flock failed (#2231) 2020-09-28 11:47:38 +02:00
Logan Lasiter 7d28afcde3
Add symphony-cpu lib once (#2232) 2020-09-28 11:46:51 +02:00
Erich Moraga 278bb5063a
Add engine f/w for CAR.LEXUS_RX (#2235)
@vonlee#4243 2017 Lexus RX350 DongleID e6112c12439776bb
2020-09-27 18:42:57 -07:00
vanillagorillaa c35af4b619
Typo: thershold -> threshold (#2230) 2020-09-25 22:50:55 -07:00
Willem Melching 8cc5bfcef8 fix modeld launch script larch64 detection 2020-09-25 14:14:54 +02:00
VirtuallyChris f25d807111 Add 2017 Lexus RX engine fw 2020-09-24 18:36:15 -07:00
Comma Device b94b435387 qcom2 needs cc conversion (#2125) 2020-09-24 22:52:35 +00:00
Dean Lee 9f34d1ff66
camerad: close file descriptors (#2065)
* close file descriptors

* fix struct indent

* add some new lines
2020-09-24 13:39:27 -07:00
Dean Lee 4fba3408c4
Params: use a multiple-reader / single-writer flock to improve concurrency (#2207)
* improve concurrency: multiple readers, single writer locks

* remove lock in read_db_value
2020-09-24 11:51:36 +02:00
qadmus 254814cc79
remove unused globals, use self.reset() (#2220)
Co-authored-by: user <email@web.com>
2020-09-24 11:39:47 +02:00
Willem Melching 53e71f44ce
tici: fix ui rotation (#2222)
* fix rotation using wayland

* put back intrinsic matrix fix
2020-09-23 23:16:55 +02:00
VirtuallyChris d9f43388fb Add 2020 Honda Odyssey fw 2020-09-23 13:43:32 -07:00
ZwX1616 da147b2534
fix dmonitoringmodeld random high CPU usage (#2216)
* exp attempt1

* attempt2 less hacky
2020-09-22 14:46:47 -07:00
Adeeb Shihadeh 9418b710a7
fix unused dt entry on android (#2160)
Co-authored-by: Comma Device <device@comma.ai>
2020-09-22 14:46:37 -07:00
Adeeb Shihadeh cdcf235025 remove unused alert 2020-09-22 13:47:30 -07:00
Adeeb Shihadeh 722a440eb6
Improved updater robustness (#2046)
* git ping

* cleanup overlay init

* separate update available check from fetch

* cleanup setting params

* only fetch neos update on android

* move that

* type hints

* lightweight update check with git ls-remote

* git fetch dry run

* cleanup
2020-09-22 12:09:41 -07:00
grekiki cf46de13d2
Uploader speedup (#2214)
* use caching for getxattr

* fix some git issues

* Scheduled network checks

* attempt optimization

* Delete speed_test.py

* Style fixes

* Fix styling

* fix spaces

* fix spaces

* fix naming

* Update uploader.py

* Update mark_all_uploaded.py

* Add file to release

* Update selfdrive/loggerd/tools/mark_all_uploaded.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-22 11:37:24 +02:00
Erich Moraga 170d19a2e1
Add CAR.RAV4H_TSS2 ESP f/w (#2213)
@kranzler#5198  2020 RAV4 Hybrid  DongleID 9f13dd7cadc3591e
https://discord.com/channels/469524606043160576/524327905937850394/757632175318368316
2020-09-21 10:15:38 -07:00
Dean Lee 0e5a5efffc
read bool param with read_db_bool (#2205)
* read bool param with read_db_bool

* Update selfdrive/loggerd/loggerd.cc

Co-authored-by: Willem Melching <willem.melching@gmail.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-21 18:17:35 +02:00
Willem Melching f55e79e46a
tici: BMX055 magnetometer& temperature sensor (#2212)
* BMX055 Magnetometer support

* add temp sensor
2020-09-21 17:33:36 +02:00
Comma Device 4be0e23ca5 Fix makefiles after read_file() helper 2020-09-21 08:03:36 -07:00
Dean Lee 6476207009
add function write_file() (#2181)
* add function write_file()

* handle EAGIN & EWOULDBLOCK

* don't  handle errno
2020-09-21 16:10:38 +02:00
Dean Lee 58e5223aba
touch.c:deleting useless function (#2208) 2020-09-21 11:43:54 +02:00
qadmus 72e0ac2de1
cleanup long planner, mpc: unused globals and arguments (#2211)
Co-authored-by: user <email@web.com>
2020-09-21 11:43:28 +02:00
Willem Melching 65e5032a97 Revert "tici: take into account frame timestamp (#2199)"
This reverts commit 3a494e144b.
2020-09-21 10:31:01 +02:00
Adeeb Shihadeh 0040ac987a add type hints to selfdrive/version.py 2020-09-19 14:55:27 -07:00
Adeeb Shihadeh 4acc82604d quick lgtm fixes 2020-09-19 12:53:36 -07:00
Adeeb Shihadeh 15e4048318
alertmanager type hints (#2201)
* alertmanager types

* clean that up

* more cleanup

* little more

* space
2020-09-19 10:53:14 -07:00
VirtuallyChris 6da22dd4b6 2019 C-HR fw 2020-09-18 18:43:21 -07:00
Adeeb Shihadeh 002e0065cb tici: set volume at 90% 2020-09-18 14:54:12 -07:00
ZwX1616 b3fad609d9 revert tici ui rotate 2020-09-18 14:12:03 -07:00
ZwX1616 911206fc41
tici camera art (#2188)
* nerf highlights

* prioritize less noise

* no overhead

* make focus easier

* cant finetune under high gain

* add some comments

* inspired by xx mindset

Co-authored-by: Comma Device <device@comma.ai>
2020-09-18 11:43:41 -07:00
Willem Melching 3a494e144b
tici: take into account frame timestamp (#2199)
* compensate for frame processing time

* add rolling shutter time

* Add max frame delay of 250ms

* only delay on tici
2020-09-18 17:42:29 +02:00
Willem Melching 39fc171f91 Only run rtshield when onroad 2020-09-18 13:48:58 +02:00
Willem Melching 73a2067be3
Get power usage from current sensor (#2192) 2020-09-18 12:25:55 +02:00
Adeeb Shihadeh a81a18205e
type hints for alerts and fix community feature alert (#2196)
* fix startup alert for community features

* type hints for alerts

* more type hints

* fix dashcam only alerts

* more type hints
2020-09-17 22:06:31 -07:00
Adeeb Shihadeh b5466002ad
promote hyundai palisade to offically supported (#2195) 2020-09-17 21:35:30 -07:00
Adeeb Shihadeh b341fdc644
Realtime shield (#2194)
* cpu 3 shield

* set priority before affinity

* add to release files

* only run on android
2020-09-17 15:49:14 -07:00
Adeeb Shihadeh 92922ce2ae these should be debug logs 2020-09-17 13:14:18 -07:00
Willem Melching 9330070bb5
tici: offroad ui powersave (#2191)
* ui powersaving

* Lower brightness even more
2020-09-17 15:50:09 +02:00
Adeeb Shihadeh ebab660622
rt debug scripts (#2165)
* rt debug scripts

* bigger buffer

* cleanup

* move to internal

Co-authored-by: Comma Device <device@comma.ai>
2020-09-16 17:42:37 -07:00
Comma Device 45c58f561a fix tici ui lag 2020-09-17 00:13:54 +00:00
VirtuallyChris 2163b1e1df Add 2020 Highlander and Ridgeline fw 2020-09-16 17:01:30 -07:00
Adeeb Shihadeh 33ad9d67ea add android procs to cpu usage sript 2020-09-16 15:47:44 -07:00
Adeeb Shihadeh ef21b83937
Improve realtime performance on NEOS (#2166)
* fix setting core affinity

* dmonitoringd doesn't need rt priority

* android only gets two cores

* model and planner get core 2

* log missed cycle count

* neos update

* prod image

* revert NEOS changes

* still need this
2020-09-16 15:33:12 -07:00
Erich Moraga 60d5cb2be5
Add CAR.LEXUS_RX various missing firmware (#2189)
@fire#7210  2018 RX350L  DongleID/route  45b442be1779b307|2020-09-15--12-04-24
2020-09-16 14:15:23 -07:00
Erich Moraga fd3cc05149
Add firmwares for CAR.COROLLA_TSS2 (#2185)
jun Jin#6444 2019 Malaysian Corolla sedan w/ TSS2
DongleID/route 7bc774bc8e17fd8a|2020-09-16--14-28-46
https://discord.com/channels/469524606043160576/524327905937850394/755781555779010630
2020-09-16 13:35:59 -07:00
Dean Lee 8f45685c91
remove unused submaster (#2187) 2020-09-16 11:11:07 -07:00
Willem Melching 855f52c3e0
hub is handled by systemd gpio service (#2172) 2020-09-16 17:58:46 +02:00
Willem Melching 9bbb166303
tici: fix ui rotation (#2184)
* rotate ui 90 degree

* put rotation behind ifdef

* Also ifdef that

* ui intrinsic_matrix

* that doesnt do anything

* Keep parent on non qcom
2020-09-16 17:46:08 +02:00
Shane Smiskol 23b38a878b
Update 17 Corolla safetyParam (#2175) 2020-09-16 11:40:19 +02:00
HaraldSchafer 0b849d5a4e
only do reset if already calibrated (#2176) 2020-09-15 07:44:13 -07:00
Adeeb Shihadeh 0604f194b3 bump max vision clients for tici 2020-09-14 21:29:46 -07:00
Comma Device c9183c11bd fix tbuffer img tearing 2020-09-15 03:32:29 +00:00
Adeeb Shihadeh 16f40e6ff3 fix stretched UI on pc 2020-09-14 19:07:14 -07:00
ZwX1616 13588e4255
improve tici camerad robustness (#2135)
* equalize performance on three threads

* need to request first

* clean up indexing

* obsolete

* handling skips and drops

* clean up repeated chunks

* use main frame id

* oneshot

* real skip check

* move to test

* should be cropped H here

Co-authored-by: Comma Device <device@comma.ai>
2020-09-14 16:05:57 -07:00
Comma Device 3801374da9 need to free tici DSP asap 2020-09-14 22:03:13 +00:00
ZwX1616 a2adfdb155
Cut down unnecessary DM uncertain alerts (#2157)
* cut down high std alerts

* clean comments

* uncertain curve tune

* update test gt

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-14 10:43:19 -07:00
HaraldSchafer df99316621
Auto reset bad calibration (#2151)
* initial commit

* thanks pylint

* smoooooth

* cleanup

* cleaner

* switched

* always decay weight
2020-09-14 04:02:58 -07:00
Dean Lee 272f60221c
use MessageBuilder::toBytes (#2167) 2020-09-14 01:17:00 -07:00
Adeeb Shihadeh 74801bd216 send initial calibration packet immediately 2020-09-13 13:54:14 -07:00
Dean Lee 9fa56b4eab
more messagebuilder (#2162)
* more messagebuilder

* little more

* revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-09-13 13:00:06 -07:00
Adeeb Shihadeh ea06941d4d set canValid for mock car 2020-09-13 11:32:37 -07:00
Adeeb Shihadeh 4d5733924a
message builder (#2161)
* use custom MessageBuilder from cereal

* use MesageBuilder.toBytes

* bump cereal

* unused

* another one

* fix ui msg

Co-authored-by: deanlee <deanlee3@gmail.com>
2020-09-12 21:48:15 -07:00
Dean Lee 8417be6f40
UI: simplify layout calculation (#2131)
* add Rect struct

* simplify layout calculation by using viz_rect

* fix

* add whitespace

* use the correct value for vwp_w

* correct vwp_w again

* rebase

* dd
2020-09-12 18:35:36 -07:00
Adeeb Shihadeh fdbfe52927
tici driver monitoring (#2158)
* use cpu for now on tici

* pin to core 5

* fix driver view

* probably wrong

* correct this time

* RHD too

Co-authored-by: Comma Device <device@comma.ai>
2020-09-12 17:50:22 -07:00
Adeeb Shihadeh a4a4e28c1a prevent reversing alert from showing while changing gears 2020-09-12 17:21:30 -07:00
ZwX1616 e9f49254da
swap ur/dl (#2153) 2020-09-11 11:29:19 -07:00
Adeeb Shihadeh 56c3d8e4d1 run deleter on tici 2020-09-10 17:21:24 -07:00
Adeeb Shihadeh 8e24939613 remove unused import in cycle_alerts 2020-09-10 15:24:09 -07:00
Adeeb Shihadeh e0004d0981
Reduce paramsd and calibrationd CPU usage (#2119)
* reduce paramsd cpu

* reduce calibrationd cpu usage

* calibration_helpers was mostly unused

* more calibration cleanup

* update refs

* fix thresholds in CPU test
2020-09-10 12:16:29 -07:00
Willem Melching 7cc5710974
Tici light sensor (#2150)
* more generic sensor base class

* add file sensor

* light sensor working

* correct sensor type
2020-09-10 15:11:13 +02:00
Willem Melching d4328365e9 cleanup controlsd env variable reading 2020-09-10 12:19:14 +02:00
Vivek Aithal c5dfbe7a72
dockerize carla + openpilot (#2011)
* dockerize carla + openpilot

* separate dockerfile

* bring back CI dockerfile

* cleanup bridge

* add op docker build and start script

* build container in CI

* fix camerad hack

* remove most magic numbers from bridge.py

* openpilot-sim docker build and run scripts

* fix dmonitoring hacks

* revert controlsd hacks

* clean up build scripts

* singular

* fix path

* fix image name

* modify sim readme

* sim readme and start script changes

* dockerfile with working opengl

* working opengl + passing panda build_st in docker

* fix bug in sim docker file

* bugfix sim docker file

* bugfix all op-sim docker issues

* modify readme + run script

* IT DRIVES

* clean this up

* more cleanup

* cleanup docker stuff

* more cleanup

* start with openpilot-base

* install carla python package

* Script is not in lib

* chmod

* everything should be running in docker now, the code may not be nice though

* works locally...

* rhdChecked is deprecated

* Checkout using git lfs when building sim container

* try to pass the tests

* pull latest docker

* gps should not throw an error on openpilot launch in bridge.py

* fixed a coding style error

* Only start ubloxd in car

* fixed more style problems

* revert typo

* Use enviromental variable to prevent errors in a simulator

* Remove unused import

* Attempt to fix missing enviromental variable

* fix typo

* less work for users, auto tmux engagement

* less work for users, auto tmux engagement

* fix check for nvidia

* clean up nvidia check

* remove typo, shorted dockerfile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
2020-09-10 12:14:49 +02:00
Adeeb Shihadeh 0ebc037be7
turn display on in spinner (#2148)
Co-authored-by: Comma Device <device@comma.ai>
2020-09-09 20:24:13 -07:00
Jafar Al-Gharaibeh 6c292c3f0c
Split car identities to CX5, CX9, and Mazda3 (#2097)
Add test routes for CX9 and Mazda3

CX9: "10b5a4b380434151|2020-08-26--17-11-45"

Mazda3: "74f1038827005090|2020-08-26--20-05-50"

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
2020-09-09 16:02:26 -07:00
Adeeb Shihadeh fde8b18f73 set params for new test 2020-09-09 15:57:06 -07:00
Adeeb Shihadeh fae13bf07e fix timing issues with new test 2020-09-09 15:16:05 -07:00
Adeeb Shihadeh a3c1de1e66 simple unit test for startup alert 2020-09-09 14:40:16 -07:00
VirtuallyChris 7fb0eb4e17 Add 2020 Highlander Hybrid fw 2020-09-09 14:26:51 -07:00
Comma Device d6571aa633 wait 5s before showing waiting for controls 2020-09-09 13:19:20 -07:00
Adeeb Shihadeh acd1bde496
QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-09-09 19:04:28 +02:00
Adeeb Shihadeh 9cd88526b5
hide camera view when in reverse (#2144)
* partially hide camera view when in reverse

* lowest priority

* update ref commit

* fix type

* update refs
2020-09-09 00:11:12 -07:00
Willem Melching e8c8e9dab2 ui: glTexImage2D only redundant on QCOM 2020-09-08 14:33:27 +00:00
Willem Melching 7cd4815773 link ui against right opengl(ES) lib 2020-09-07 17:13:47 +02:00
Adeeb Shihadeh e386133c4b
Always keep display on with ignition (#2138)
* keep display on with ignition

* fix typo

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-07 13:13:10 +02:00
ZwX1616 6a8cd6e054
Fix loggerd not rotating encoder if dcamera upload disabled (#2133)
* should only count after the check

* include no dcam

* no need to copy

* run with both param

* independent idx

* not break test if no device

* remove unused

* EON D is half

* needs test for qcamera too

Co-authored-by: Comma Device <device@comma.ai>
2020-09-06 01:21:26 -07:00
Erich Moraga bdc668d9be
CAR.CAMRY f/w (#2134)
rap777#5376 DongleID 6c7451b19113581c
https://discord.com/channels/469524606043160576/524327905937850394/751358475237589022

Verified working from my own fork, per...
https://discordapp.com/channels/469524606043160576/538741329799413760/751603387778465873
2020-09-04 18:20:02 -07:00
Adeeb Shihadeh 660e734022
sidebar cleanup (#2130)
* sidebar cleanup

* undo that
2020-09-04 15:05:45 -07:00
Adeeb Shihadeh 5838a88a3f update refs after new alert 2020-09-04 14:09:26 -07:00
Adeeb Shihadeh 86f4d86cd7 make calibrationInvalid a permanent alert 2020-09-04 13:20:48 -07:00
HaraldSchafer 01111b3f28
remove vp everywhere (#2122)
* remove vp everywhere

* wrong dimension

* useful disclaimer

* switcheroo

* imcomplete switcheroo

* did it wrong again

* difference look small enough

* fix comment
2020-09-04 03:05:20 -07:00
Greg Hogan 1e6c7c94e4 fix pylint errors 2020-09-03 18:46:13 -07:00
Shane Smiskol fb6f6268d3
TextWindow Enhancements (#2114)
* cause error

* revert for now

* decrease font by 10 pts

* remove unnecessary () for class ;)

* move exit button closer to right corner

* 70% transparency for black background

* cause error

* well that's not right

* try showing more lines

* actually show last three lines

* forgot to join

* debug what we can leave out

* show last four files

* revert

* show 3 lines and one extra for last erroring line

* increase by 5 points

* move text left a bit

* fix

* fix

* two more lines

* add double indentation for formatting

* remove indentation of file lines

* fix

* fix

* try this

* try this

* make lines shorter

* clean up error code in manager

* try one more

* reduce lines altered in PR

* four is good

* this actually isn't required anymore

* can move more left

* and increase size

* slightly less

* slightly less

* try a different error

* try last three with negative

* revert to 75

* fix

* clean up

* remove path hiding

* revert offsets

* revert
2020-09-03 17:54:49 -07:00
Adeeb Shihadeh 6fad82e710 clean up old params 2020-09-03 16:37:48 -07:00
Adeeb Shihadeh 848301b091
UI vision refactor (#2115)
* refactor vision

* don't show slow frame message when in preview mode

* change draws to uint32_t

* set vision_seen=false after destroy

* remove vision_connect_thread

* refactor ui_update

* seelp 30ms when vision is not connected

* remove should_swap

* call ui_update_sizes before ui_draw

* rebase

* start bigger UI refactor

* don't need the touch fd

* fix qt build

* more cleanup

* more responsive

* more refactor

* fix for pc

* poll for frames

* lower CPU usage

* cleanup

* no more zmq

* undo that

* cleanup speed limit

* fix sidebar severity for athena status

* not aarch64

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-09-03 16:32:55 -07:00
Willem Melching 8880ec81f2 add more opengl info on startup to pc ui 2020-09-03 14:31:31 +02:00
Dean Lee f71467b450
release copy_q in visionbuf_free (#2121) 2020-09-02 21:11:25 -07:00
VirtuallyChris 48b16b6b1c Add 2020 Highlander engine fw 2020-09-02 16:29:17 -07:00
Adeeb Shihadeh daea946ad2
sensord cleanup (#2111)
* sensors_qcom cleanup

* include vector and map

* abstract sensor init

* use a set

* add to relase files

* fix this up

* no ui changes

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2020-09-02 14:04:55 -07:00
Willem Melching 5c058140ed
tici: fix set_realtime_priority (#2124)
* cleanup and pin modeld to core 5

* Unused import
2020-09-02 17:52:41 +02:00
Willem Melching 92de562ed9 pc ui: print opengl version on startup 2020-09-02 15:46:39 +02:00
Willem Melching 873043b9fb 1024 MB should be enough for anyone 2020-09-02 15:12:30 +02:00
VirtuallyChris 9ad9076486 Add Insight fw 2020-09-01 19:01:19 -07:00
Adeeb Shihadeh 1e5a935ff0
paramsd process replay test (#2118)
* paramsd process replay test

* cleanup
2020-09-01 18:31:26 -07:00
Adeeb Shihadeh 21fbe26980
Reduce plannerd and dmonitoringd CPU usage (#2108)
* fix wasted cycles in locationd and dmonitoringd

* bump cereal

* calibrationd

* Revert "calibrationd"

This reverts commit 580051a33b.

* this is cleaner

* calibrationd

* paramsd is driven by liveLocationKalman

* only log params once a minute

* stricter CPU usage test

* revert locationd for now

* revert calibrationd too

* revert thresholds
2020-09-01 16:41:09 -07:00
Comma Device 18884743a6 remove recurrent LOGD and prints 2020-09-01 20:15:39 +00:00
Comma Device 80838f3693 use buffered meta 2020-09-01 18:55:15 +00:00
Willem Melching 4891d3787a
Wait 5 minutes after offroad before changing thresholds (#2113) 2020-09-01 11:25:04 +02:00
Willem Melching 42b6292fa5
ui: simplify shader versions and fix hardcoded texture size (#2112)
* fix shader version

* fix texture buffer size

* Attribute/Varying is deprecated
2020-08-31 15:02:01 +02:00
Willem Melching 01b3079451 Fix camera view on PC 2020-08-31 13:16:30 +02:00
Adeeb Shihadeh 63436373d2
Remove opencv from phonelibs (#2107)
* remove opencv from phonelibs

* clean that up too
2020-08-30 18:23:23 -07:00
Adeeb Shihadeh 4569e51b3e Revert "Added Toyota Camry 2019 (AUS) SX(2.5L FWD, 6speed) firmware versions (#2096)"
This reverts commit 76a5ad3a5f.
2020-08-30 17:14:45 -07:00
Michael Honan 76a5ad3a5f
Added Toyota Camry 2019 (AUS) SX(2.5L FWD, 6speed) firmware versions (#2096) 2020-08-30 17:01:26 -07:00
Shane Smiskol dfdbf6e416
Show lane lines and path while using uiview.py (#2104)
* add modeld and required calibd procs to uiview to display lane lines when debugging

* send radarState with empty message to show model path

* make uiview.py executable
2020-08-30 11:38:40 -07:00
Adeeb Shihadeh 349040d958
driver monitoring cleanup (#2101)
* read rhd from param

* don't need that anymore

* fix build

* bump cereal

* read param from camerad too

* add read_db_bool helper

* bump model replay ref commit, IsRHD wasn't set
2020-08-29 17:16:00 -07:00
Adeeb Shihadeh 284938cd43 fix hyundai editing can parser values 2020-08-28 21:34:34 -07:00
Adeeb Shihadeh 45b4b6007a
lidar is a scam (#2094) 2020-08-28 16:21:05 -07:00
ZwX1616 b7bc342cc8 need no divided by 2 2020-08-28 12:20:36 -07:00
Adeeb Shihadeh 33fd13cc8c fix CI cache auto-deletion 2020-08-28 11:19:20 -07:00
Adeeb Shihadeh 9cd5180b43
remove read_param_timeout (#2095)
* remove read_param_timeout

* missed that
2020-08-27 19:24:51 -07:00
ZwX1616 9731e7a0d7 not show soft recover alerts 2020-08-27 17:59:26 -07:00
Adeeb Shihadeh 685340d578
Sound stability test (#2089)
* play sound

* clean this up

* no cereal

* fix module issue

Co-authored-by: Comma Device <device@comma.ai>
2020-08-27 15:50:48 -07:00
Adeeb Shihadeh 82f40f6ff5 small uploader cleanup 2020-08-27 14:22:59 -07:00
Adeeb Shihadeh 43e3ec1bc1
UI cleanup (#2091)
* remove unused UI code

* these params aren't used anymore

* this is cleaner

* remove one more timeout

* read that from carParams

* only android needs pm

* fix that

* fix that

Co-authored-by: Comma Device <device@comma.ai>
2020-08-27 11:57:31 -07:00
Willem Melching 3517d45802 make sure snpe can find libopencl 2020-08-27 11:35:52 +00:00
Willem Melching 658e9d8316 open by path instead of number 2020-08-27 09:44:52 +00:00
robbederks 37d6472bfa
Tici camerad (#2048)
* fix camera config

* typos

* oops

* more typo

* lambless

* forget to send

* visualize hist

* more typo

* 0xC000

* simple

* data loss prevention, clean up later

* loggerd

* back up code

* backup

* fixed memory leak

* fix vsync

* upload ecam

* WB

* 3stream

* fix OMX crash on loggerd rotation

* rewritten debayer kernel

* update viewer

* improved AE

* no artifact lines/grids

* standard trigger

* cleanups

* CCM

* cleanups

* slight tweak

* upd push sock

* build all these

* update tele fl

* update cereal

* upd viewer

* DualCameraState -> MultiCameraState

* cameras_open

* disable frame zmq push by default

* more cleanup

* no apks

* fix submodule error

* wat

* clean up trash

* remove junk

* only build on qcom2

* no need to check these

* update cereal

* some more minor cleanup

* bump panda

* add todo

* minor typo

* Revert "minor typo"

This reverts commit 9233a1df7c.

* not care

* use consistent hdr

* some cleanup

* Update selfdrive/camerad/main.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* more cleanups

* remove irrelevant stuff

* this too

* cleanup

* rerun ci

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-08-26 19:59:56 -07:00
ZwX1616 3014280d1a
Fix OMX error on loggerd rotation when using multiple cameras (#1953)
* cherry pick from f8745d3002

* update cereal

* missed this line

* add enum

* Update selfdrive/loggerd/loggerd.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update selfdrive/loggerd/loggerd.cc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* use same logroot

Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-08-26 15:02:51 -07:00
Adeeb Shihadeh 7bee1dbdbf missing two f's, loggerd should really work on pc 2020-08-26 13:48:54 -07:00
Adeeb Shihadeh ff5d98f85f add frame count check to loggerd rotation test 2020-08-26 13:06:32 -07:00
Willem Melching a7be2b090d larch64 dmonitoringmodeld fixes 2020-08-26 17:49:20 +00:00
Willem Melching e88edeb051
apport support for tombstoned (#2087)
* apport support for tombstoned

* Update manager

* Update comment
2020-08-26 19:06:56 +02:00
Willem Melching cd6ec8211c
larch64 modeld fixes (#2086) 2020-08-26 17:18:05 +02:00
Willem Melching 5782efe3ae
Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
2020-08-26 17:09:23 +02:00
Willem Melching c7152d5419
Hardware abstraction class (#2080)
* hardware abstraction class

* De Morgan

* Rename pc hardware class

* Fix sound card in controlsd

* Pc get sim info

* fix hardware in test

* two more

* No more random imei on android

* no randomness on android

* Need to return something that looks like imei for registration to work

* Return proper network strength

* Unused import

* Bug fixes + gpsd is only android
2020-08-26 14:57:17 +02:00
Willem Melching 41b0cba0dd sensord: more precise 100 Hz, compensate for time spend measuring 2020-08-26 12:10:50 +02:00
robbederks 622e42d504
Tici sensord (#2072)
* tici sensord: WIP

* add sensor constants

* rename files

* base class

* init sensors

* publish something

* dont leak memory

* try reading from accel

* Accel works

* add time and sensor source

* Update release files

* If we want low BW we want 125hz

* this should run gyro as well

* add filter on gyro

* also filter accel data

* Add i2c files

* cast makes macos unhappy

* Same outputs as android sensord

Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-08-26 11:30:30 +02:00
ZwX1616 521b6688ea
wait longer for tici camerad startup 2020-08-25 21:07:50 -07:00
ZwX1616 87473fbc41
Loggerd rotation test (#2077)
* loggerd test

* delete afterwards

* add ccc

* fix pylint

* cleanup rotation test

* this works

* bump tolerance

* clear the data after test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
2020-08-25 18:31:49 -07:00
Willem Melching e497b95f54
Universal clocksd (#2075)
* universal clocksd

* start in manager

* remove android include

* Apple hacks

Co-authored-by: Comma Device <device@comma.ai>
2020-08-25 10:53:04 +02:00
Adeeb Shihadeh 7956bb6883
mac ui kind of works (#2079) 2020-08-25 00:56:42 -07:00
VirtuallyChris ac4e244b3b More Insight FW versions 2020-08-24 16:11:24 -07:00
Dean Lee 71eedbce44
Remove unnecessary string copy (#2067) 2020-08-24 09:25:16 -07:00
Willem Melching 6bb2630eba
Pandad: turn on panda power (#2073)
* pandad turn on panda power

* Add gpio.py

* needs bytes

Co-authored-by: Comma Device <device@comma.ai>
2020-08-24 16:56:29 +02:00
Willem Melching 9eb3d89ca2
Thermald cleanup (#2049)
* Thermald cleanup

* no Temps, fix ui formatter

* Fix scaling

* Don't touch that

* typo

* Fix fan control

* Fix if

* change cereal

* Update comment
2020-08-24 14:17:41 +02:00
Dean Lee 08d6fe1880
paint.cc: deleted two meaningless lines (#2043) 2020-08-24 14:15:34 +02:00
eFini c7904cdec3
fingerprint for China 2019 CRV Hybrid (#2056) 2020-08-24 14:09:30 +02:00
Dean Lee 17dd07e751
visionstream: fix doube fd close (#2057)
* s->ipc_fd counld be closed twice

* white space
2020-08-24 14:07:27 +02:00
Dean Lee 727055e0a0
remove device_id&context from ModelFrame (#2064) 2020-08-24 14:04:52 +02:00
Dean Lee de7b901dc1
move matmul3 into live_thread (#2069) 2020-08-24 14:00:00 +02:00
Adeeb Shihadeh 520c2676b6
type hints for messaging (#2061)
* bump cereal

* fix bugs found by mypy

* bump cereal
2020-08-23 00:33:19 -07:00
Erich Moraga 1bfeacdeaf
Add 2020 RAV4 LE Hybrid engine f/w (#2058)
C0mpl3t3N00b#0074 DongleID bdad50b8a1f9fa8e...
https://discord.com/channels/469524606043160576/524592892627517450/746500256178372678
2020-08-21 16:17:34 -07:00
cydia2020 97bb55703e
Prius 2018 Engine FW (#2054) 2020-08-21 16:02:30 -07:00
Adeeb Shihadeh 732df68d84 small dmonitoringd cleanup 2020-08-21 14:55:12 -07:00
BrettLynch 1f4e16be3c
Added fingerprint for my 2020 Corolla Hybrid Sx sedan (#2052)
Co-authored-by: BrettLynch <metalworer@live.com.au>
2020-08-21 11:10:27 -07:00
Willem Melching d7f3690e85 ui: larger font size 2020-08-20 21:37:28 +02:00
Willem Melching 2410c7e26b ui: force GLES context 2020-08-20 21:33:32 +02:00
Robert Hanna 85ba6e0e2f
Add Lexus RX esp FW (#2050)
Add new Ecu.esp FW version to LEXUS_RX_TSS2
2020-08-20 10:55:35 -07:00
Willem Melching e03044530c boardd: return early from usb functions if not connected 2020-08-20 17:36:02 +02:00
Willem Melching b29d9da875 Revert "more init time in cpu test"
This reverts commit 03ec6af300.
2020-08-20 17:18:03 +02:00
Willem Melching e115c51452
Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
2020-08-20 17:16:44 +02:00
Willem Melching 03ec6af300 more init time in cpu test 2020-08-20 15:20:59 +02:00
Adeeb Shihadeh 2476ea213c clip carBatteryCapacity to 0 2020-08-19 12:34:49 -07:00
Adeeb Shihadeh 266ef886dd add a sleep after cloudlog 2020-08-18 11:52:01 -07:00
Adeeb Shihadeh a46d2f5b17 log when thermald shuts down device 2020-08-18 07:45:20 -07:00
Dean Lee f8ab6bd009
ui: refactor model related functions (#2026)
* remove read_model

* remove structs for c-capnp

* remove duplicate #define from modeld

* add function fill_path_points

* fix Indentation

* use MODEL_PATH_DISTANCE instead of 192

* fix type

use validLen

* rename left_path_points&right_path_points to xxx_lane_points
2020-08-18 15:26:43 +02:00