Commit Graph

1277 Commits

Author SHA1 Message Date
Willem Melching 4fd9d6467b more init time in cpu test
old-commit-hash: 03ec6af300d1d051436514b194e430fb54d16c6c
2020-08-20 15:20:59 +02:00
Adeeb Shihadeh a219cc17e9 clip carBatteryCapacity to 0
old-commit-hash: 2476ea213c24dac16531c8798761e34f96e0ded2
2020-08-19 12:34:49 -07:00
Adeeb Shihadeh 00e61c5f1e add a sleep after cloudlog
old-commit-hash: 266ef886dd778cc7d486349b72279c89c03dad06
2020-08-18 11:52:01 -07:00
Adeeb Shihadeh 83faaf2906 log when thermald shuts down device
old-commit-hash: a46d2f5b17cc24102f26674a2102a0044b3e84e6
2020-08-18 07:45:20 -07:00
Dean Lee ebd4f68cba 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
old-commit-hash: f8ab6bd009410a9f7ab9c30ce7b72a82c6d2507b
2020-08-18 15:26:43 +02:00
Dean Lee bccaaeb3fa fd should be initialized as -1 (#2041)
old-commit-hash: 963c00db09554e71264b699a99c9a705c80c99d8
2020-08-18 15:22:26 +02:00
Adeeb Shihadeh 41a6c716d5 remove old tests (#2040)
old-commit-hash: 744fe7180187507f9dc8d455b961f882992d0684
2020-08-18 15:21:47 +02:00
Adeeb Shihadeh b2e40a7487 remove dead code in updated
old-commit-hash: 21a1792f895e006fd70883b5621989e01b539693
2020-08-17 16:21:55 -07:00
Adeeb Shihadeh 0fac431c58 bump version to 0.7.9
old-commit-hash: 86dc54b836a973f132ed26db9f5a60b29f9b25b2
2020-08-17 12:49:08 -07:00
robbederks 030570736c more panda fault types (#2036)
old-commit-hash: c624b408428c09723eb8d02f19a6051f325b7187
2020-08-17 13:02:06 +02:00
Dean Lee fb8c67ba1f paint.cc: remove redundant calls (#2025)
* remove redundant calls

* set MODEL_LANE_PATH_CNT=2
old-commit-hash: fe43d51686da19063c4ee3ebdb09eadfdd3a56ad
2020-08-17 12:06:09 +02:00
Dean Lee 00e8238b78 fix two little bugs (#2033)
old-commit-hash: 934506e1545acd30bf65e9544e565005d6c56fc6
2020-08-17 11:59:27 +02:00
robbederks bcaf2a36af Car power integrator + power management refactor (#1994)
* wip, ready to test

* tweaks

* fix

* fix

* fix power monitoring

* fix param writing

* no forced charging on high voltage

* reset capacity on reboot

* don't shutdown unless started seen

* fix unused var warning

* fix linting errors

* time is always valid

* QCOM gate

* Local params

* decimate saving

* fix linting

* rename param

* Log car battery capacity

* fix put_nonblocking

* Added some unit tests

* Add test to docker test list

* fix precommit

* cleanup

* run tests in CI

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7555379b2b1da2f800e98963ad4436b7fb91cce9
2020-08-17 11:56:27 +02:00
Dean Lee bf750511a1 add function cl_get_device_id (#1948)
* add func cl_get_device_id

cleanup

* add fix from review
old-commit-hash: d1588376171d8ba1d2ec1b670e085d6e15bd26c1
2020-08-17 11:24:39 +02:00
Chris 42538fd54b Kilometers per hour now displayed as km/h (#2032)
Fixes #2031

Signed-off-by: Christopher Rabotin <christopher.rabotin@gmail.com>
old-commit-hash: 1b52930a52828b1423c59c677c9b42a5ff76125c
2020-08-17 11:16:52 +02:00
Dean Lee 681a50640e init and destroy transform_lock (#2003)
old-commit-hash: 36801a70eb8f599baee8e07aed0ec9c3b6385595
2020-08-16 16:31:53 -07:00
Adeeb Shihadeh 44467a376f exit camerad cleanly on PC (#2035)
old-commit-hash: 862259a94b6c6c8fa758c0656cbfbc9ec08d4f54
2020-08-16 16:11:09 -07:00
Erich Moraga 68fc79ac93 Add fwdCamera f/w for CAR.COROLLA_TSS2 (#2028)
Nv#6820 DongleID 4dc9a71c543a576f  2020 Corolla LE ICE
https://discord.com/channels/469524606043160576/524327905937850394/744254107874885652
old-commit-hash: 70c7a72d4a4201cc649389d553b064c13873d1c0
2020-08-15 11:48:27 -07:00
Erich Moraga 0b05507563 EU Corolla Hybrid TSS2 EPS f/w (#2027)
@Lexdaadler#0295 DongleID 940e337f5fcf4d4e
https://discord.com/channels/469524606043160576/524327905937850394/744162927954755615
old-commit-hash: d99aa16b7d92c1fb37f683c2375dbd4629025a9c
2020-08-15 10:55:26 -07:00
Adeeb Shihadeh 2f3942bb11 increase CPU test timeout to allow for installing new APKs
old-commit-hash: 5641aeee7ae896e2ee4e24f68e24d47e497031ea
2020-08-13 15:10:00 -07:00
Willem Melching 938ce91d02 Pigeon abstraction layer (#1977)
* pigeon abstraction layer

* Fix string literals

* more generic pigeon class

* add TTYpigon

* nicer tty error handling

* close tty fd on pigeon delete

* pigeon receive return std::string

* use sizeof

* max receive size to prevent infinite loop

* remove namespace

* add unistd include for usleep

* fix is pigeon

* Handle tty error in opening

* fix printing binary strings with dump.py

* fix pigeon build on macos

* Handle errors seperately

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 502cc665e0bad89eba0b1c344c2f4f580b153ae1
2020-08-13 10:10:50 +02:00
Adeeb Shihadeh 8c86886f75 fix get_git_remote not returning a value
old-commit-hash: 0394b8b921b55e44681f44251ad72b3a60f4c1b6
2020-08-12 13:50:51 -07:00
Adeeb Shihadeh c2b1d97b20 NEOS background updater (#1892)
old-commit-hash: cb5a2996e75658ac61f057fb729c229a554c551e
2020-08-12 11:39:21 -07:00
Willem Melching c52e3fe331 Force battery temperature to 0 on comma two
old-commit-hash: e909fddac06acb1a602e3f25578c61a9e2b3ec11
2020-08-12 16:36:17 +02:00
Willem Melching eab33adbc9 Don't check dirty on prebuilt release (#2014)
* dont check dirty on prebuilt release

* cleanup

* Command cleanup

* Only log dirty comma branch

* Less whitespace

* Consistentcy

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c3a45580265f2138e12c371966e28a81886ead75
2020-08-12 11:38:38 +02:00
Comma Device 563517e2a1 fix boardd build
old-commit-hash: a228c4d0a077097cf14eb770570bec1727d57d0c
2020-08-12 09:02:13 +00:00
Adeeb Shihadeh dde753d531 fix linter
old-commit-hash: 60e2267f02b8c09666a73c6ea2dea1bf25cc8ce1
2020-08-11 20:37:51 -07:00
xps-genesis 1cfc19fad1 update optima fingerprint and Fw Fp (#2017)
* update optima fingerprint and Fw Fp

* Update values.py

* fix indent

* not ignored

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5663c116edbea0235b2a439257ebc6c0d39f4435
2020-08-11 18:57:16 -07:00
Adeeb Shihadeh 6af8eb88af update total scons nodes
old-commit-hash: 335aa318953b0ee2d1100a4e7ccc5000b00fd536
2020-08-11 16:24:53 -07:00
Adeeb Shihadeh 017b084154 Alert when updated consistently fails (#2013)
* alert when update fails more than 10 times

* bring over offroad alert refactor from other branch

* and we have tests

* use it in snapshot

* bump apk

* don't show exceptions on release branches

* only write when changed

* why does delete use so much cpu

* clean that up

* little more
old-commit-hash: 8e63f065400ea1868f077560ae89b2c17f5523f8
2020-08-11 16:23:57 -07:00
Adeeb Shihadeh dbd9d952e9 increase controlsd CPU test threshold
old-commit-hash: f3adedacb29bc4784e474d89a960364c7a4c24cd
2020-08-11 13:43:19 -07:00
xps-genesis 1b330d06ce Car Port: 2020 Hyundai Kona (#2010)
* update KONA car port

* update Kona  Car Port

* ignore kona EV

* add Kona route

* update readme for Hyundia Kona

* remove electric for regular Kona
old-commit-hash: a3d754a8d88404ec7f8ef1f0c1d04dd65c1fa90a
2020-08-11 13:42:19 -07:00
Dean Lee a81c4ebd79 camerad: protect concurrent access to shared variables and avoid race conditions (#1966)
* Protect concurrent access for shared resources

* fix
old-commit-hash: f3fb406eee85b072c727ccaf027bd2dacd3aa69a
2020-08-11 11:40:11 -07:00
Erich Moraga c8676c69e3 Added additional IS 300 engine f/w (#2015)
@Asochgelt#1815 DongleID|route 3da61f28d4ece0e8|2020-08-11--09-25-48

Also expanded the firmware layout to make additional f/w entries easier.
old-commit-hash: 8c9378af794c49e1e1958863b5b0feef10dd771d
2020-08-11 11:29:19 -07:00
martinl 6a000279ad Add preglobal Subaru Forester and Outback (#1993)
* Add preglobal Forester and Outback

* Tests and values cleanup

* Update units in carstate

* Remove ()

* Add OUTBACK_PREGLOBAL_2018 to non_tested_cars

* Add replay route for OUTBACK_PREGLOBAL_2018
old-commit-hash: c9adc4900b2e26d0582cb264da2e547a513de831
2020-08-10 12:31:40 -07:00
xx979xx 705dfc1c5b fix for PC: detach panda kernel driver if active (#1950)
old-commit-hash: 4f0c75291b9c56b9eb219cbe74025c6897635d85
2020-08-09 01:08:09 -07:00
xps-genesis 83ae9ef377 Car Port: Hyundai Genesis G70 2018 (#2000)
* Car port Genesis G70

* Car port G70

* rebase

* update G70 car port

* Update README.md

* no space

* rebase mistake

* Update values.py

* Update values.py

* Update values.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a16a948f9ee434c69a72f8aac39405a14ba62073
2020-08-08 22:20:25 -07:00
Adeeb Shihadeh 37f8ca00aa Improve CPU usage test reliability (#2002)
* run phone tests in parallel

* better cpu test

* re-enable test

* no root

* terms version

* not one

* yes

* debug

* that's coverd by min cpu percent
old-commit-hash: ecf0a8c8d49dddb18767d929d381f5bbf946c5d8
2020-08-08 20:59:32 -07:00
Dean Lee 066398a49a camerad: close ops_sock in camera_close (#1998)
old-commit-hash: 55ece6991e1fdeb4b109e47c978c4da2a3b23594
2020-08-08 15:55:09 -07:00
Dean Lee 735f84089c fix bug that visionstream_destroy may be called twice (#1999)
old-commit-hash: cccb63229d9b6d953bfa62b57327d345403c85b2
2020-08-08 15:50:36 -07:00
Adeeb Shihadeh 755c21f05c update_ci_routes.py: upload route by arg
old-commit-hash: cea8b9e67a34d39716f4be1e8be64e7aa8fca306
2020-08-08 14:30:31 -07:00
Adeeb Shihadeh 944759717e fix missing negative limit in pid controller (#2001)
old-commit-hash: ee99b59bade8d3b5057a5b3f22ad8b3edd102c78
2020-08-08 11:49:13 -07:00
Adeeb Shihadeh c4ce441026 Remove non-SCC Hyundai Kona port (#1997)
old-commit-hash: 5e82578a1b66a1e13753d2258f32950aece48942
2020-08-08 11:48:16 -07:00
Adeeb Shihadeh 4cb22dcc80 only check offroad in dmonitoringd on init
old-commit-hash: 31f57cb3a3b865ddc3f57be056ad302639ec61ba
2020-08-07 10:48:03 -07:00
martinl 0aeae7d81e Subaru pre-global: add support for Subaru Legacy 2015-18 (#1805)
* Add support for Subaru Legacy 2015-18

* syntax fix

* Add Legacy 2018 FPv1

* Add Subaru Ascent from upstream

* Use GLOBAL_CAR and LEGACY_CAR lists

* Change LEGACY_2015 to LEGACY_PREGLOBAL

* Add LEGACY_CAR to carstate

* Change LEGACY_2015 to LEGACY_PREGLOBAL in test_car_models

* Add missing SafetyModel to Ascent

* Use GLOBAL_CAR and LEGACY_CAR to set safetyModel

* Change LEGACY_CAR to PREGLOBAL_CARS, remove GLOBAL_CAR

* Fix PREGLOBAL_CARS in carstate and subarucan

* Minor cleanups

* Add accelCruise button event

* Change Preglobal Driver Torque limit to match Global

* Match comments to upstream

* Use Steer_Warning and Steer_Error_1 only for Global

* Change mph units to match upstream values

* Increase Preglobal brakePressed  threshold to 2

* Add DashcamOnly to LEGACY_PREGLOBAL

* Fix typo in variable name

* Update README, add create_preglobal_steering_control

* cleanup carcontroller

* cleanup values

* missed that one

* Update STEER_STEP

* Update STEER_MAX

* Add preglobal signal frequency checks

* remove PREGLOBAL_CARS from subarucan

* Remove whitespace

* Use common frequency checks

* cleanup carstate

* cleanup subarucan

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: e37b8e5d5632a7cc48326f7ca162ef87f259e526
2020-08-06 21:55:13 -07:00
Adeeb Shihadeh 3dccc7fc2e Updater tests (#1974)
* refactor exit handling

* test update

* more reliable?

* better

* init git in CI

* testy tester

* CI should work

* test overlay reinit

* only one

* still need to fix loop test

* more patience

* more patience in CI

* no ping in CI

* this is cleaner

* need to run these in jenkins

* clean up

* run in jenkins

* fix test file path

* it's a git repo now

* no commit

* reinit

* remove duplicate

* why not git

* la

* git status

* pythonpath

* fix

* no CI fro now

* check overlay consistent

* more tests

* make more changes in the update commit

* sample

* no k
old-commit-hash: fe18a014c7845b5e81738b0be716d256aeb00d78
2020-08-06 21:49:05 -07:00
VirtuallyChris 1ef178279f Add Camry 2020 camera fw
old-commit-hash: 0fd763f90256a7b1fce389bd69aff47e37e394a2
2020-08-06 16:39:06 -07:00
Dean Lee 0d76ecc156 release opencl objects (#1978)
old-commit-hash: fb41b984b0ed48da7c1c5d5687fd7485f66259e4
2020-08-06 15:44:26 -07:00
HaraldSchafer 388274d494 Track calib spread (#1988)
* add calib spread metric

* add field

* needs to be array

* update refs

* log valid blocks too

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d097abeb2130fc841571b14551eeea2acaa12296
2020-08-06 14:47:17 -07:00
HaraldSchafer e85d1f0044 persist falling until message sent (#1982)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 85a7ceaf079ed6c8cb804403f33706a386ca9b51
2020-08-06 14:46:19 -07:00