Commit Graph

8094 Commits

Author SHA1 Message Date
Adeeb Shihadeh 4af9ea276b prevent snapshot while onroad (#2366)
* prevent snapshot while onroad

* fix offroad check
old-commit-hash: 4c4b53bedafb966e813b98ab6522726204e213e7
2020-10-20 14:04:18 -07:00
Willem Melching 9ecc0d362e store params in ~/.comma on PC (#2369)
old-commit-hash: c0d92516ccf4dcb8a09c972815a6e08326b59105
2020-10-20 13:18:21 +02:00
Willem Melching 65b397460e UI: get video aspect ratio from camera intrinsics (#2351)
* UI: get video aspect ratio from camera intrinsics

* cleanup video rect definition

* const zoom

* Match zoom level

* Fix comment

* Zoom out more
old-commit-hash: 9d0b89394429e6ee9f8f9c2849dd19b11fb9b0ce
2020-10-20 12:14:19 +02:00
Shane Smiskol 1468b3bb49 matrix subclass not recommended way to represent matrices (#2348)
old-commit-hash: 5bcac27d98fe45aa5237c4d9cd1a04bc8d7bd279
2020-10-20 12:12:23 +02:00
Adeeb Shihadeh 09095e07fd numpy tolerance for INDI
old-commit-hash: 32496626b260a3c95440052a7d262f5859e136f1
2020-10-19 23:29:22 -07:00
Dean Lee 1089f8fa8f fix build warning (#2365)
* fix build warning

* Update selfdrive/common/util.c

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

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 0bbd080a04bf6373a430811c48345703a9bbc256
2020-10-19 22:44:24 -07:00
Adeeb Shihadeh e94809f5bd add cars with LQR and INDI lat control to process replay (#2363)
* add cars that use LQR and INDI lat control to process replay

* bump ref commit
old-commit-hash: 516da927f9a1f04be4cbc281bc1b3c73092a4a36
2020-10-19 21:18:50 -07:00
Adeeb Shihadeh 05fca52169 explicitly turn display on in updater (#2362)
* explicitly turn display on

* clean that up

* update binary

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2fd5ab782bdfbee15d66bd8b155a05246d90d31c
2020-10-19 20:16:27 -07:00
Willem Melching 643120e411 Reset liveParameters if starting with invalid values (#2360)
* reset params if starting with invalid values

* newline

* No need to check stiffness
old-commit-hash: 63e23e9cd72b5cb36ec78e3ec477290602c2dcc7
2020-10-19 19:04:33 +02:00
Willem Melching 8cc1d9f855 fix typo in params path on PC
old-commit-hash: d28f488ea56c78c4f70fd3c8c16114ffa48ba38a
2020-10-19 14:25:45 +02:00
Willem Melching 5c09e8e61b use iterator to loop over first 1000 entries (#2359)
old-commit-hash: 47dfa524565301969db32ab2bee4b089d985e87d
2020-10-19 13:44:36 +02:00
Adeeb Shihadeh 53b2a39a90 tap to wake with accelerometer (#2267)
old-commit-hash: 9e03c2e9293eadd6853382b1b5c7e853ddc808f1
2020-10-18 19:03:41 -07:00
Chris Souers 747de9f80f Add 2020 Acura RDX (#1557)
Update CAN Fingerprint

Update files_common

Update test_car_models.py
old-commit-hash: dc8b5538e858d4435fa636705ca3bb592999dcde
2020-10-18 19:03:04 -07:00
Adeeb Shihadeh a0845d8301 NEOS 15 (#2084)
* doze

* need a new apk

* new build

* neos 15 part 1

* new build to re-enable display control for ft8716

* production image
old-commit-hash: f9a5f71bf50fb3d8b2032203c571011569784406
2020-10-18 17:03:28 -07:00
Adeeb Shihadeh 8abecea3db fix pylint import error
old-commit-hash: 6073610cb08e03e142b80dc7b1196ce359a1f55a
2020-10-18 16:12:39 -07:00
Adeeb Shihadeh e2ae5774b8 quick toyota EPS scale factor script
old-commit-hash: 82c112dad067de5ea33ff8249f14ac6233439c85
2020-10-18 16:00:42 -07:00
cydia2020 47cb0f12b5 The correct (factory) way of displaying barriers on toyotas (#2281)
old-commit-hash: 99e92c7ae2a568691363a775fdaecd360b929e1c
2020-10-17 18:26:49 -07:00
Comma Device b43b1ac567 need that one too
old-commit-hash: e4d2174a4efaf324f2e32c11a569bc7f069a4a30
2020-10-17 17:44:10 -07:00
Matt Barclay b145aafc1f Fingerprint for 2021 RAV4H XLE (#2357)
* Fingerprint for 2021 RAV4H XLE

* Removed v1 fingerprint for 2021 RAV4H_TSS2 XLE
old-commit-hash: 722f9d6b75c97ac7621a0266f4ef447a1aaadd9a
2020-10-17 17:14:35 -07:00
Adeeb Shihadeh d06d1d76dc fix params permissions for offroad (#2356)
* fix params permissions

* don't need that one
old-commit-hash: 20a6ca83c9194025bb6f2edf2c3992b7b6c9001a
2020-10-17 17:07:40 -07:00
Willem Melching 651d4ce031 --std=c++17 (#2330)
* switch to c++17

* more 17

* 1z

* use std::clamp

* Fix types in clamp

* bump submodules

* bump laika

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb1e8ca73aeb1f0066a23b0933706ae5
2020-10-17 13:33:12 -07:00
Adeeb Shihadeh f92c30b164 fix build warnings (#2355)
* fix build warnings

* cython fixes

* cleanup transformations build

* little more
old-commit-hash: 96b637737bd42b334bffb188d278766bd0abe6c6
2020-10-17 12:40:01 -07:00
ZwX1616 dae628002f 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>
old-commit-hash: 6b020241c986f614e9a1f08b5b870ff225cf7b19
2020-10-16 21:58:05 -07:00
VirtuallyChris ce24d01c4a 2020 Ridgeline fw
old-commit-hash: c5ec96680f453fca3304f27bd3e8e07158180220
2020-10-16 17:50:46 -07:00
Adeeb Shihadeh fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b7408bc73ffa9320c8ce2689b74993430
2020-10-16 15:16:17 -07:00
VirtuallyChris f63c297ba8 Add Ridgeline 2020 camera fw
old-commit-hash: 35ad3775edd7177e0fe3f178fcf81a58237d938c
2020-10-16 15:11:35 -07:00
Willem Melching 0db7cd7571 tici: set brightness in std::async (#2347)
* set brightness in std::async

* CI
old-commit-hash: 442f2543e326b6dccdadb71a89fe36e4b6587f92
2020-10-15 20:48:05 +02:00
Willem Melching 2fad3df58a 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>
old-commit-hash: a1fd08c1e1a9918ec4bbfcf1b60ec22290d8acbd
2020-10-15 15:47:38 +02:00
Comma Device 3d5e2004c3 fix encoder build
old-commit-hash: 4e2f9d915f34be5c1e27531ee3040d8e5ddf9e19
2020-10-15 11:23:42 +00:00
Willem Melching 789d5176cb 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
old-commit-hash: 3dd944898183be0ecf985f389d462e53c3feb8e5
2020-10-15 13:15:22 +02:00
Adeeb Shihadeh 8531345bf9 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>
old-commit-hash: 725e3b78ea1baaefa6795116c582a63c7a61686b
2020-10-14 18:27:27 -07:00
Adeeb Shihadeh aea2faaa98 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
old-commit-hash: ae4b4bd1256c11153035e4236cd801738f135c51
2020-10-14 15:56:18 -07:00
Adeeb Shihadeh 5dc58abbbe clear irrelevant alerts on state transition (#2318)
* cleanup

* clear warnings

* more types

* needs refactor

* update refs

* update refs
old-commit-hash: 1c6905cac1c5b4528e60dac3279357959c2e2bc3
2020-10-14 14:08:15 -07:00
Adeeb Shihadeh 31ea16e7fa fix params on PC and when reading path from env (#2340)
* fix params when reading path from env

* fix pc
old-commit-hash: 707a670f42dc87c322c6d27eb147ba260b149e23
2020-10-14 13:45:24 -07:00
Andre Volmensky 7fbba16989 Nissan Rogue 2018 (#2336)
* Added Nissan Rogue 2018 fingerprint

* Merged Nissan Rogue fingerprints. Updated README.md
old-commit-hash: a1037b53347f47783a76f93954e00a554ce930ca
2020-10-14 11:03:40 -07:00
Adeeb Shihadeh 13a5f5737b fix params permissions after refactor
old-commit-hash: 6f307ea4c560070f1eb7e02218f9de17adc3ab86
2020-10-13 19:14:51 -07:00
VirtuallyChris 8f5ea8a4b8 was supposed to be on branch
old-commit-hash: dc680572638ce658c980ccc076a53ebc197768b0
2020-10-13 15:30:57 -07:00
VirtuallyChris 9c2166082f Add more Rav4 fw
old-commit-hash: fd563e17d68d908628224d073efb9d1de3c72ac8
2020-10-13 15:28:48 -07:00
Adeeb Shihadeh 834a83dcd2 don't show giraffe alert with relay (#2335)
* who has a giraffe still?

* not black
old-commit-hash: 6bc6db5f7adfc7bdc05fcb19e5fcef6e83d96f8c
2020-10-13 12:42:04 -07:00
Willem Melching 94a947e59a Fix lane change when blinker is turned off early (#2324)
old-commit-hash: ce85e402f4a7141d8ee739006c20a5492c06a2ea
2020-10-13 17:42:29 +02:00
Willem Melching 498ecbdf3c 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>
old-commit-hash: 2e182e5c574ea1468678b5fd8d0597e34ed5898d
2020-10-13 16:23:23 +02:00
Willem Melching a331861873 Remove czmq part 1 (#2332)
* remove czmq

* remove streaming mode from loggerd

* Add include for usleep
old-commit-hash: a4ccfcffe8247bf467bddfb0e6c5b3eb8851e21a
2020-10-13 16:01:07 +02:00
grekiki 469a7ee7ef 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>
old-commit-hash: fc1d01be81d4e0716d10f8bed9ea3feb6a22be5b
2020-10-13 15:38:13 +02:00
VirtuallyChris 9c8aee2892 Add Nissan Leaf 2020 (#2311)
* Add 2020 Leaf fingerprint

* Split fingerpints

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

* skip net check while onroad
old-commit-hash: ee37d03c1ffa76d91d7085c2eb9ca2ce762ee647
2020-10-12 13:12:01 -07:00
Willem Melching 839b6af9ce Update 2020 Hyundai Palisade FW versions (#2322)
* add fw versions

* carParams is sometimes not in first segment

* Update can fingerprint
old-commit-hash: 0365db20d8853845dce79727e347b02ec07b472c
2020-10-12 15:57:06 +02:00
eFini 39c19cf2d5 white/grey/black pandas still have power ctrl function (#2308)
old-commit-hash: ea81d36c41a789b69a787e29985301fb057e831e
2020-10-12 13:58:36 +02:00
grekiki 83b7ec3ce1 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>
old-commit-hash: 870644b59eb61953b3355a3938cc272927708dfa
2020-10-12 11:18:53 +02:00
Dean Lee bf08763a3a fix webcam build error (#2320)
old-commit-hash: 8fc9cfea38982cc0d15361e52c248331a18bf7e3
2020-10-11 22:45:19 -07:00
vanillagorillaa 31e75d48a9 RAV4TSS2: Additional fw (#2317)
old-commit-hash: b47f8be0ec870e4c35b450f15afec8ce8581504c
2020-10-11 12:06:34 -07:00