Commit Graph

845 Commits

Author SHA1 Message Date
George Hotz 206b6abe7d thneed saves 45% of a core (#1512)
* thneed runs the model

* thneed is doing the hooking

* set kernel args

* thneeding the bufferS

* print the images well

* thneeds with better buffers

* includes

* disasm adreno

* parse packets

* disasm works

* disasm better

* more thneeding

* much thneeding

* much more thneeding

* thneed works i think

* thneed is patient

* thneed works

* 7.7%

* gpuobj sync

* yay, it mallocs now

* cleaning it up, Thneed

* sync objs and set power

* thneed needs inputs and outputs

* thneed in modeld

* special modeld runs

* can't thneed the DSP

* test is weird

* thneed modeld uses 6.4% CPU

* add thneed to release

* move to debug

* delete some junk from the pr

* always track the timestamp

* timestamp hacks in thneed

* create a new command queue

* fix timestamp

* pretty much back to what we had, you can't use SNPE with thneed

* improve thneed test

* disable save log

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 302d06ee709cb65dba39e836917f5693f0819efb
2020-05-15 13:53:01 -07:00
Willem Melching a6676b8a62 White panda is deprecated (#1516)
* Start white panda deprecation

* Unify alert text

* Add noentry

* Change to no longer supported

* panda is lowercase

* Capitalize

* rerun ci
old-commit-hash: c85b174584b1281ce1f1d168b0b0610d5d540896
2020-05-15 13:00:00 -07:00
Willem Melching 380d1e4f3d Fix two event names
old-commit-hash: 631d0d94d3beb1bd5ac9000b70104847c8c71dac
2020-05-15 12:24:12 -07:00
Willem Melching b1a73d69ea add simple script to print controlsd alive and valid
old-commit-hash: e66c246f34fc1cfa87adb1157e2b44d8927cdd03
2020-05-14 20:16:24 -07:00
Paweł Goliński 524397ce86 Use Conversions in calibrationd (#1511)
old-commit-hash: 8b0ab73fefa4fbfae58192067b82073cd5d485fe
2020-05-14 17:56:45 -07:00
Bruce Wayne 157c671a60 make linter happy
old-commit-hash: f8a0eb0f7a9a63404b82b3f131436dcd5d9958c8
2020-05-14 17:38:52 -07:00
Harald Schafer 777e183af3 too complex
old-commit-hash: 013e49bf907539d119fbebcf02f4ce3749849065
2020-05-14 16:30:00 -07:00
Willem Melching 8f71de0dbe Rednose (#1503)
* add rednose

* update rednose

* This compiles

* Add rednose to release

* cleanup

* Extract generated dir as argument

* Add constants.py to release

* Add rednose to dockerfile

* Fix that
old-commit-hash: 28bf5d1dd8d08cd8998d2ee9d813b7e573858cf9
2020-05-14 15:36:56 -07:00
Adeeb 48340cc8cb Alerts + Events refactor (#1466)
old-commit-hash: d976233f696040cd5f9a5081c7b21742b7aaef66
2020-05-14 15:21:21 -07:00
Jason Young 30e1e9f91c Make timeout setting code reachable (#1509)
old-commit-hash: d8d490ef6d3ac849ae05d1183020fb469b218dcc
2020-05-14 13:03:47 -07:00
Willem Melching c83dabd8e2 Add code to steer using TSS2 LTA message (#1507)
* try again with toyota LTA

* Fix dbc and send at 50Hz

* Add commented code

* Remove unused import

* Remove that
old-commit-hash: 49dd37b81b05c8d77d801c4a027d27d7b1b8094c
2020-05-13 19:09:51 -07:00
Willem Melching 39e5985776 Clip v_cruise to V_CRUISE_MAX
old-commit-hash: ef330078130f71f93b3e81e9839c3386fe55946f
2020-05-13 18:05:24 -07:00
Willem Melching 43b696893d speed too high louder alert
old-commit-hash: e7ec02e2011721a819d0bafe0245bc017ef89f4a
2020-05-13 18:02:09 -07:00
Willem Melching aedf223401 remove eigen from phonelibs (#1505)
old-commit-hash: add784a7df0bd27aa1df115e38d43d5159c832f9
2020-05-13 16:41:52 -07:00
Willem Melching 5cbaf497f7 bump version to 0.7.6
old-commit-hash: 69aacd9d179fe6dd3110253a099c38b34cff7899
2020-05-13 16:13:38 -07:00
xps-genesis 45bb947116 Split G80 from Hyundai Genesis (#1502)
Previous commit moved G80 from G90 grouping to Hyundai Genesis grouping.
Bug found as minSteerSpeed is 0 for G80 but 60 for Hyundai Genesis.
Taking @pd0wm recommendation and  ungrouping G80 to its own.
old-commit-hash: 2c39133c094c0db21bf46be753752d6c49961c06
2020-05-13 15:31:30 -07:00
Chris McCammon c64efa4854 Remove Brazil Corolla (#1504)
old-commit-hash: b0aa834eaf94e5949c965973f5ef01fc4ea0e326
2020-05-13 15:11:10 -07:00
Chris McCammon d62c7b1169 Add more Lexus ES 2019 FW (#1500)
* Add more Lexus ES 2019 FW

* Found the other FW
old-commit-hash: c1d892ec9b476632bd339b2afbcac60d03340e46
2020-05-13 14:33:51 -07:00
xps-genesis 3aaffd669c CAR.GENESIS_G80 has incorrect parameters (#1499)
Hyundai Genesis 2015-2016 is similar to Genesis G80. The Genesis G90 is the larger vehicle. These are grouped wrongly.
old-commit-hash: 38cdc5777f201be855ed45d8556b13cc328660a5
2020-05-13 13:14:52 -07:00
Chris McCammon 7cffa6ad2e Add Brazil 2020 Corolla FW (#1492)
old-commit-hash: af70256bc17629117a61b3a6b8d43dd96f3250b9
2020-05-13 08:24:05 -07:00
Willem Melching ef6640c7c4 Fix controlsd typo in refactor
old-commit-hash: 516fa29738738b73b863597c4fae49cf688b7154
2020-05-12 18:58:18 -07:00
Willem Melching 8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00
Willem Melching 0214bfa5eb Fix steering wheel icon showing (#1497)
* this should fix steering wheel icon showing

* fix syntax
old-commit-hash: 2ae2c40b2943c502c4c66a44ac6ae5cb773c208b
2020-05-12 18:17:04 -07:00
Adeeb fe106e25a3 Controlsd refactor (#1487)
* it's a class

* more refactor

* remove that

* car interface should create that

* that too

* not a dict

* don't create permanent events every iteration

* break up long lines

* fix honda

* small optimization

* less long lines

* dict is faster

* latcontrol less args

* longcontrol less args

* update profiling script

* few optimizations

* create events together

* clean up

* more clean up

* remove comment

* clean up

* simplify state transition

* more clean up

* update comments
old-commit-hash: 08832ff29d20348ebffd0ac3bcce29ad3a479cee
2020-05-12 15:06:48 -07:00
Chris McCammon 0530b401e0 Missing engine FW for Sienna (#1486)
old-commit-hash: 6fb7199f33acc93f81aa183cbad92e824428fe54
2020-05-11 23:08:47 -07:00
Dean Lee b53eaeffce use test_bit to determining if a device is a touchscreen (#1389)
old-commit-hash: 3349b5b3bed9bfd8ab1a20935fc1cd18a630d3ad
2020-05-11 15:30:22 -07:00
Chris Souers bfdf06206e Add 2020 Honda CRV support (#1464)
old-commit-hash: e37aaffaadbe0ee9fff9f618952ceb15d634b584
2020-05-11 13:52:00 -07:00
Erich Moraga 229a72ef3e DSU firmware for CAR.RAV4H (#1474)
* DSU firmware for CAR.RAV4H

@csullivan#3202 944e3f96fd78a72f``944e3f96fd78a72f|2020-04-25--12-03-43

* Additional CAR.RAV4H DSU firmware

Pulled 881514202200 from @zerofinalblue#3567's 2017 RAV4 hybrid FPv2 output. 
79a302dcf774b7a4|2020-05-08--12-38-57
old-commit-hash: d18eb721ffdcd0d2c5e1ee544e5a326c8578c36c
2020-05-11 13:49:36 -07:00
Harald Schafer 02eeef5f2b safer
old-commit-hash: ee10697d861c422545ce29ce7869c328e42c7a7c
2020-05-10 22:00:41 -07:00
Willem Melching c77e9b1f59 Fix counter in HKG clu11 message (#1484)
* fix counter in clu11 message

* update ref
old-commit-hash: 27ffa29f6c24637ce0580dbd9ad96d290de98fec
2020-05-10 20:13:35 -07:00
Willem Melching 587d00d24a fix update ref script
old-commit-hash: 5182da31009e0dd62bd92abb98b1a5bc306ddee1
2020-05-10 18:55:53 -07:00
Adeeb Shihadeh bd980f6048 delete unused lines
old-commit-hash: 10ae22a19247042b825f1bcac740f70f58b4e197
2020-05-10 11:25:42 -07:00
Jason Young 53fc3f1e7e Fix hardcoded path in sensor test script (#1481)
* Fix hardcoded path to sensor test script

* Rename the other place too
old-commit-hash: 09d465013c057762fee4c8c4a14a3837b2a9ec5b
2020-05-09 22:17:24 -07:00
Adeeb Shihadeh 0a5273bf46 fix circular import reported by LGTM
old-commit-hash: 48dec51f0e93dd1a46b24414afc8ebac27269188
2020-05-09 16:47:36 -07:00
Adeeb 64b69bda50 LGTM fixes (#1480)
old-commit-hash: 008700a6b39c3fefe1233fca9adf85cb3413b5b8
2020-05-09 16:40:43 -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: f7c8707bf854f40c54d3c0b9676e26584b95103c
2020-05-08 21:04:55 -07:00
George Hotz d7fcbc9c4b remove locationd from car started processes for now
old-commit-hash: 7c71a14a89484ff713019c0a7983baeec7582061
2020-05-08 20:30:57 -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: 71bebc4fca91681669c86b5600b67bf2b7f899bf
2020-05-08 19:39:18 -07:00
William 798e1a8908 Shebang Fix (#1477)
* Shebang Fix

Per George's "I'd merge a PR replacing the 4 python3.7 with python3" on Discord. George updated Python to 3.8.2 for webcam tools, which broke manager from launching. Instead of chasing the exact version, it seems more reasonable to fall back to 3.

* More Python3.7's
old-commit-hash: aef01f4bdfc03929a7ad046e867ef975f81b7b59
2020-05-08 18:08:11 -07:00
HaraldSchafer f3747d2fe5 Better poly (#1437)
- better polyfitting
- no mpc cost change during lane change
- model trained with better ll gt, sim noise and guaranteed memories
old-commit-hash: 65fcc7c45ff1d4d747dc52ff5791afb84a18744a
2020-05-08 17:14:43 -07:00
Adeeb b1cbd898f1 Move swaglog to cpp + remove another lib (#1470)
old-commit-hash: 46f3665279222ce53333a8c001def1b2a8e32926
2020-05-08 14:46:10 -07:00
Adeeb Shihadeh 45b9284fd0 don't need c capnp any more
old-commit-hash: 27303c2d5d094088fd6afcceccac53bbb9c73f08
2020-05-07 21:07:18 -07:00
Dean Lee 0b0674ef20 camerad: move c-capnp to c++ (#1472)
* convert c-capnp to c++

change paramater type

* remove c-capnp header from commonmodel.c

* unsigned short -> uint16_t

* MSM_CAMERA_I2C_ADDR_TYPE_MAX->4
old-commit-hash: b6d6f520327226004c328a4b7cbbb3b855b2909d
2020-05-07 20:14:30 -07:00
Patrick Violette 8decbd547a [Honda FW Versions] Add values for combinationMeter and programmedFuelInjection. (#1463)
Honda Civic Hatchback, 2019 shows these in the carParams.
old-commit-hash: 28128cbbebcd59c42de116734c2d152c720fa157
2020-05-06 13:33:07 -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: ee725534bb1ae2335705562e9f1eb176e5cd91fd
2020-05-06 08:38:26 -07:00
Adeeb Shihadeh 7bc6491502 these don't need json
old-commit-hash: 9670f8fb9f081a14d1de24f92e0800ebffbb123b
2020-05-04 23:37:07 -07:00
George Hotz 16cbb5e255 Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.

old-commit-hash: d5ca841b0f18d2e707eb1f73afac842ede9be7e8
2020-05-04 09:54:05 -07:00
Adeeb Shihadeh 004c0e277b fake less of PubMaster and SubMaster when profiling
old-commit-hash: ad2c54e9916301d63907d96c3e9dec046bd016b1
2020-05-03 17:41:26 -07:00
Dean Lee 0a3dfb0476 fix wrong order of cleanup calls (#1461)
old-commit-hash: 75abfe28d5e979e7ebda3b89c18130365e303cca
2020-05-03 08:28:10 -07:00
ZwX1616 aada0e9a66 bad AF state logging (#1365)
old-commit-hash: 968e2585cc7e2a580fa351a75ceb02c1fe02c409
2020-05-02 21:40:43 -07:00