Commit Graph

1179 Commits

Author SHA1 Message Date
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: d720f28ecb35c06a5ffb6004e79d82c80707fcde
2020-06-05 15:33:45 -07:00
Willem Melching 5c30b96932 boardd: no conflate on sendcan (#1645)
old-commit-hash: 19512315ffc6db82b06b5b8f688ee09656a620e4
2020-06-05 14:20:52 -07:00
Jason Young ebed52527b Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 68531b071cde6fa5856d9b68bed63ecb50e03c2a
2020-06-05 17:09:41 -04:00
Adeeb 16c0bc99b2 Remove common/messaging.h (#1635)
* remove common/messaging.h

* release files
old-commit-hash: 7666d99694615f0a4a960e0b739018c4628ffa50
2020-06-05 12:46:49 -07:00
Dean Lee f7ffc61c52 pass subframes_map by refer (#1640)
old-commit-hash: 5f58307153cd018a6c5e3a8da9416a6749cbabea
2020-06-05 12:42:23 -07:00
Dean Lee bbafa5a72d pass DMonitoringResult as referer (#1639)
old-commit-hash: c7ff6dd194b48629dbd05a2cc87afd328fffa3a5
2020-06-05 12:42:01 -07:00
Adeeb Shihadeh f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e5546f8c8054e8dcedc830607ad643b
2020-06-05 11:29:09 -07:00
Willem Melching ce6dd8d4e9 Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63c8e8439b6d19020055f922340d8e33d906363a
2020-06-04 18:57:25 -07:00
Willem Melching 55c3a89421 slow down upload check when offroad (#1634)
old-commit-hash: f4e8df7ee6de2998968bfa93f09f2359ca21b89e
2020-06-03 19:28:41 -07:00
Adeeb 9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a0c9fb698c8248a5c28c66c2987ae65
2020-06-03 16:13:34 -07:00
VirtuallyChris dd16cd5d56 add Rav4_TSS2 engine fw
old-commit-hash: eebdf52ff57857171c55df3cdc10f64adc2ad039
2020-06-03 15:18:30 -07:00
George Hotz 69678ee181 calloc an extra byte in read_file
old-commit-hash: f19d25dd8d3e521fab82195027cc08cd08cb80d8
2020-06-03 14:22:45 -07:00
George Hotz 669977eb1f save valid_len
old-commit-hash: 4e7fe3a9ec4fddd517ea470af3b7eb3a6fd415e3
2020-06-03 14:18:42 -07:00
Jafar Al-Gharaibeh bbe43de357 Fix rounding of minSteerSpeed in events (#1620)
I thought I was missing a rounding in Mazda code, but it turned
out to be a missing rounding after the recent event refactoring

Python3 interpreter:
>>> print(" %d  %d" % (1.6,1.4))
 1  1
>>> print(" %d  %d" % (round(1.6),round(1.4)))
 2  1
>>> print(" %d  %d" % (int(round(1.6)),round(1.4)))
 2  1
>>> print(" %d  %d" % (int(round(1.6)),int(round(1.4))))
 2  1

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
old-commit-hash: 73db0791997efa270f6793b7acb422aedc22d21f
2020-06-03 14:01:32 -07:00
Willem Melching dbdbef72d6 vehicle model types (#1631)
old-commit-hash: 240041708450d916bb49ee229ee4cff0e5f5ab59
2020-06-03 13:47:47 -07:00
Adeeb d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Willem Melching db4a918c2a Bounds checks on liveParameters for testing on desk
old-commit-hash: 0f20ac728f4558ee8a849646f366d816a2479b62
2020-06-03 11:31:12 -07:00
Willem Melching c8d5b49a44 Paramsd can now be killed normally
old-commit-hash: e3ffdf3647075ce7415a9ba6b808b5021931acc1
2020-06-03 11:11:06 -07:00
Willem Melching adc846c1fd run deleter when offroad
old-commit-hash: 6e0bb25ab4659db306df10ba90fdc18562b2cc4f
2020-06-02 17:39:58 -07:00
Willem Melching ad66386877 locationd profiling (#1625)
old-commit-hash: 66455b075d918d9f04fae6921d0a692ee3f8afd0
2020-06-02 17:32:55 -07:00
Adeeb 8c0971086b Fix speed too low (#1627)
* fix speed too low

* bump ref

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 165bcf1f31ffc34b56c84cf8e71f41ce224dd7e3
2020-06-02 17:31:59 -07:00
Willem Melching a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Willem Melching f9036398e8 ui.cc: read_db_value is not null terminated
old-commit-hash: 884b327374890358424c90d1fc20b459f599987e
2020-06-01 16:41:04 -07:00
Willem Melching a749ebb1c4 speedTooHigh should not be an immediate disable
old-commit-hash: 205cb04ee95f51c0d96f20d71564ef6d1c530d85
2020-06-01 15:53:41 -07:00
Willem Melching 2bc6a34ee5 fix flake8 error in honda carstate
old-commit-hash: 0a5bb88ca293a690d947ea5d98e915f3f3c8eca9
2020-06-01 15:28:47 -07:00
cowanhmoore 81d0cdfcec HRV fix gas pedal signal (#1582)
Seperate CAR.HRV from CAR.FIT
HRV used GAS_PEDAL, not GAS_PEDAL_2 for FIT
old-commit-hash: afaa2b917c249872f59b5ab1a03a93c02d7a3789
2020-06-01 15:26:47 -07:00
Willem Melching 650ee4c0de remove unused line in nissan carstate
old-commit-hash: fa7d8f6e1b6c8a27dacff2bbff89b3cbe79c5609
2020-06-01 14:39:06 -07:00
Andre Volmensky 6ad040fda7 Nissan mph bit (#1609)
* Added MPH bit for Rogue/XTrail

* Init seatbeltUnlatched as True
old-commit-hash: 843b2940c5b35a92cc3f9f7d0f4310a420a8ad94
2020-06-01 14:38:20 -07:00
Dean Lee 32fa3e26be Template version of read_param (#1593)
old-commit-hash: c9dbaf821c5654019dec0ac814c56ed54c3cacf3
2020-06-01 14:30:53 -07:00
Willem Melching e738ab6f04 longitudinal test should broadcast liveLocationKalman
old-commit-hash: d00cdf1e0c7bf7fc8bb7726bafb93e8e6f946574
2020-06-01 14:24:48 -07:00
Dean Lee dbc8ca1d26 dmonitoring : use memory cache to avoid malloc/free on every frame (#1599)
* use memory cache

* use template function to return buffer

* inline function

* const size_t

* use std::vector instead of kj::array
old-commit-hash: cdb48cc180bd22fbad75785d07a7f47da959880c
2020-06-01 14:00:43 -07:00
Willem Melching 3e630fce60 Make driverview not pin two cores at 100%
old-commit-hash: fab8425f2f5277f3e767e29f01942448674428b0
2020-06-01 13:58:54 -07:00
Willem Melching 6f09d990af paramsd output at 20 Hz instead of 100 Hz
old-commit-hash: a108e7f211e4af4b4e0ac334686c11cdb7a26f2e
2020-06-01 13:47:17 -07:00
Willem Melching 3df1a2c681 Fix low speed engage on stop and go Hondas (#1613)
* fix low speed engage on stop and go Hondas

* update ref commit
old-commit-hash: f575a9ec12990ac2a764a5f416795d1c618f4609
2020-06-01 10:14:11 -07:00
Jafar Al-Gharaibeh 80a6d76ce5 Mazda: Slower rate for ACC cancel msg to avoid cruise disable (#1615)
* Slower rate for ACC cancel msg to avoid cruise disable

 Sending ACC cancel message at 10hz may end up disabling
main cruise state. That is because stoc ACC use the same
signal for both functions. If cruise is already enabled
the signal canceles it, otherwise cruise is disabled.
10hz seems to be still fast in some cases not allowing
the state to sync up between OP and the Stock state.
5hz avoids that issue. Also, the resume message was also
updated to 5hz as that seems to work better as well.

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>

* Round up 27.96 to 28mph

Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
old-commit-hash: 41fbce59067569d370b38f40cd1ef09b61c08df2
2020-06-01 02:04:47 -07:00
Adeeb Shihadeh 37a67a2a14 enable flake8 E502: backslash is redundant between brackets
old-commit-hash: 6466ec982aa47bcbbc7c6a3a7cf60cec0163be84
2020-05-31 17:41:18 -07:00
Adeeb Shihadeh 8b3418b0f9 enable flake8 E251: unexpected spaces around keyword / parameter equals
old-commit-hash: ebed2d1dcc53f092696b61fd1e004045c9bde893
2020-05-31 17:34:47 -07:00
Adeeb Shihadeh 9823f1164c enable flake8 E303: too many blank lines
old-commit-hash: f3dcf861c73b47c52b5dd77a8f1f8858005ae18b
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh 68a3061c9d enable E261 in flake8: two spaces before inline comment
old-commit-hash: 27754a277c36b82ef4040e536cc918ba8ad77bec
2020-05-31 14:07:29 -07:00
Willem Melching e048a1f054 Add alternate Accord tuning
old-commit-hash: 02c130731c2c041cbe95cef8717a93a0b6d67b48
2020-05-31 13:37:55 -07:00
Willem Melching 5fb17dc296 Enable new params learner for improved vehicle model estimation
old-commit-hash: a0adc4482108a3b89b6e4cb3fe27b8f51291bc08
2020-05-31 13:36:27 -07:00
Willem Melching 168ac65d9e White panda no longer supported
old-commit-hash: 106cddb49a3c60449a0413ff28dbbe50479c43bf
2020-05-31 13:33:56 -07:00
Willem Melching 60f8bb0188 Bump version to 0.8.0
old-commit-hash: ea74edf71be344b09eb9c5802405ef9aefc6b614
2020-05-31 13:31:44 -07:00
Adeeb Shihadeh be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Adeeb 7965569766 Flake8 E22X (#1607)
* e221

* e225

* bump opendbc
old-commit-hash: 6051061ff8e7809960cc1f2bad9a582801d5a83e
2020-05-31 00:48:47 -07:00
Andre Volmensky d106ccc0fb Added Rogue 2019/Leaf 2019 fingerprints (#1605)
* Added Rogue 2019/Leaf 2019 fingerprints

* Added Rogue as new car. Updated readme

* Added route to test_car_models.py. Fixed if statements to check against rogue/x-trail

* Fixed paste error

* Merged Leaf fingerprints

* Assume Rogue is MPH until we work out the mph/kph bit
old-commit-hash: 9fc826cb5c6fc46ebd0fe5c1ecd322a472da44ef
2020-05-30 20:25:32 -07:00
Adeeb 5e857427ba Enable more flake8 checks (#1602)
* enable some more flake8 checks

* some more quick ones

* bump opendbc

* e401

* e711 e712

* e115 e116

* e222

* e301

* remove that

* e129

* e701 e702

* e125 e131

* e227

* e306

* e262

* W503

* e713

* e704

* e731

* bump opendbc

* fix some e722
old-commit-hash: d9bf9f0a4036f55411f6dfbb438990a5eb7f4930
2020-05-30 20:14:58 -07:00
Willem Melching 2ee34128d0 add some sanity checks on returned params
old-commit-hash: 4fcf47812bee79a82919799d9a9b9cac115dea99
2020-05-30 17:15:41 -07:00
Willem Melching e04d6772d8 Improved tune for VW Golf Mk7. #1603
commit 012049274fd5573bdc5d2d0f198817646dfd5a1b
Author: Willem Melching <willem.melching@gmail.com>
Date:   Sat May 30 10:40:49 2020 -0700

    update ref

commit d50cc2d81fd73dcfccfe1a8e2726879941ec5327
Author: Jason Young <jyoung8607@gmail.com>
Date:   Sat May 30 10:32:25 2020 -0400

    Discard no-longer-used import

commit c092e6f5092535a3b4bb5cabb6f5ecf83ef754c7
Author: Jason Young <jyoung8607@gmail.com>
Date:   Sat May 30 10:21:57 2020 -0400

    Improved tune from community

old-commit-hash: b5a2cec913f44438aa15b8b49e2cfee2b033c5e6
2020-05-30 17:04:38 -07:00
Adeeb Shihadeh 25f83a654e remove file that shouldn't have been committed
old-commit-hash: 18afb979fe5ef00ebb9079991a0fcbfdf3734eb1
2020-05-30 14:40:00 -07:00