Commit Graph

48 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: 302d06ee70
2020-05-15 13:53:01 -07:00
Willem Melching
f3d87abf82 release nissan (#1515)
old-commit-hash: 3f97660a1a
2020-05-15 11:39:58 -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: 28bf5d1dd8
2020-05-14 15:36:56 -07:00
Adeeb
48340cc8cb Alerts + Events refactor (#1466)
old-commit-hash: d976233f69
2020-05-14 15:21:21 -07:00
Willem Melching
aedf223401 remove eigen from phonelibs (#1505)
old-commit-hash: add784a7df
2020-05-13 16:41:52 -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: 72db8d890d
2020-05-12 18:50:07 -07:00
Adeeb Shihadeh
bd980f6048 delete unused lines
old-commit-hash: 10ae22a192
2020-05-10 11:25:42 -07:00
Adeeb
64b69bda50 LGTM fixes (#1480)
old-commit-hash: 008700a6b3
2020-05-09 16:40:43 -07:00
George Hotz
a7abef9bad copy the codecov and lgtm config files
old-commit-hash: bb9ca1ebd6
2020-05-08 18:07:28 -07:00
Adeeb
b1cbd898f1 Move swaglog to cpp + remove another lib (#1470)
old-commit-hash: 46f3665279
2020-05-08 14:46:10 -07:00
Adeeb Shihadeh
06dadf1e69 fix release after camera_qcom.cc rename
old-commit-hash: 1503e24d3c
2020-05-07 21:32:22 -07:00
George Hotz
16cbb5e255 Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.

old-commit-hash: d5ca841b0f
2020-05-04 09:54:05 -07:00
ZwX1616
aada0e9a66 bad AF state logging (#1365)
old-commit-hash: 968e2585cc
2020-05-02 21:40:43 -07:00
Dean Lee
f2932aadfd Bypass alignment related copy whenever possible (#1443)
remove blank lines

add file messagehelp.h

remove blank line

simplify

after review
old-commit-hash: b225016628
2020-05-01 19:21:00 -07:00
Willem Melching
21d7ad1e51 remove yet another reverse geocoder
old-commit-hash: 70ae01e3cd
2020-04-24 14:07:36 -07:00
ZwX1616
f90b956f47 RHD support for driver monitoring (#1299)
old-commit-hash: 133b1a20b4
2020-04-15 16:48:44 -07:00
Willem Melching
935753357a Add binary to display text (#1301)
* add binary to display text

* fake text needs status too

* Rename to TextWindow

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 202a4c2011
2020-03-31 20:14:26 -07:00
George Hotz
3f5d11ff3b Preparing for the efficientnet (#1255)
* snpe version 1.35.0.698

* fix files common for new snpe

* efficient net with normal names

* compiling with 1.32 works

* actual snpe files

* fix monitoring, delete unneeded

* point the symlinks to the right places

* err, modeld needs the CPU

* benchmark for 50 its

* put back old model for now

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com>
Co-authored-by: George Hotz <geohot@gmail.com>
old-commit-hash: 6e5a2d404b
2020-03-30 14:20:51 -07:00
Harald Schafer
18a05e304c longitudinal e2e mpc
old-commit-hash: 34f2c0da75
2020-03-26 17:43:11 -07:00
Greg Hogan
004c181167 uploader: do not delete files after uploading (#1253)
* cffi xattr function wrapper

* xattr wrapper error handling

* xattr tests

* use xattr for tracking files uploaded

* uploader xattr exception handling

* update uploader tests

* remove unused import

* update release build

* xattrs.py -> xattr.py
old-commit-hash: f21d0f325e
2020-03-19 18:09:26 -07:00
Willem Melching
bb112dd2f3 remove internal rawgps (#1252)
old-commit-hash: ee7234485b
2020-03-18 11:40:22 -07:00
robbederks
b0855ab17c Offroad power monitoring (#1067)
* Untested implementation of offroad power monitoring

* Fixed some syntax errors

* Cast to int

* Fixed pylint

* Wrapped in class

* Put pulsed calc in own thread

* Longer timeout before starting pulse measurement

* Fudge factor + flake8

* Made integration thread-safe and catch charge disable exceptions

* Catch all calculation errors

* Fixed networkstrength removal
old-commit-hash: 992be20d63
2020-03-10 22:18:48 -07:00
George Hotz
640c41a3ff Add sentinels to logs and qlogs (#1205)
* sentinel WIP

* logger is now a cc, not a c

* simpler code doesn't touch loggerd.cc

* oops, double lock. and logreader is nicer

old-commit-hash: 2f2b85581c
2020-03-05 14:29:34 -08:00
Willem Melching
1076fb3da2 Track CPU usage in CI (#1168)
* run openpilot for 60 seconds and report cpu

* Not passive

* Set training version

* Write cpuset

* Add community toggle

* Formatting

* Refactor

* Reorder processes

* Add max cpu

* Try this

* Try this to exit

* Does this work?

* This should work

* now it should work again

old-commit-hash: 3d2696c60b
2020-03-02 10:40:47 -08:00
Willem Melching
7d0ed178dc Kalman filter to identify vehicle parameters (#1123)
* full vehicle model simulator

* Add vehicle model

* Model compiles

* Close enough

* Simulation works

* Add fast angle offset

* Tune fast angle offset learner

* Create live service for paramsd

* Better clamping

* Fix rotation matrix

* Cleanup before merge

* move debug script to debug/internal

* revert plannerd change

* switch vehicle model to corolla

* fix valid flag

* Bigger stiffness range

* Lower process noise on steer ratio

* Tuning

* Decimation

* No maha tests

old-commit-hash: c9ecab2139
2020-02-26 16:19:02 -08:00
Willem Melching
e7a1ece98f Run locationd online (#1089)
* add locationd to manager

* add to release files and make linter happy

* Don't ship all models

* Also add locationd.py

* Remove unused import

* Fix import in kalman helpers

old-commit-hash: ff91c6f9d4
2020-02-17 18:07:23 -08:00
Willem Melching
197c1d92fc Kalman filter compilation cleanup (#1080)
* start cleanup

* create generated dir if not exist

* tests pass!

* everything works again

* also convert live_kf to new structure

* Remove sympy helpers from file list

* Add laika to docker container

* Only build models that are present

old-commit-hash: 47fd50ca60
2020-02-12 09:40:28 -08:00
Willem Melching
b80ad41680 Re enable athenad test (#1058)
* Renable athena test

* debug

* Revert "debug"

This reverts commit 30f68055f8ea047ba4e2989d63a5020e0468487f.

* Specify correct pythonpath for tests

Co-authored-by: Andy <andyh2@me.com>

old-commit-hash: 960b42c523
2020-02-11 19:26:34 -08:00
Comma Device
493b2050ad working release2 script
old-commit-hash: 26453ad38b
2020-02-11 21:25:21 +00:00
Willem Melching
987fbe23a3 make sure release script removes old dotfiles
old-commit-hash: c4ed49f082
2020-02-11 10:13:21 -08:00
Willem Melching
e423493a9f Create /data/pythonpath in release script
old-commit-hash: 4f05efb6bc
2020-02-10 14:49:44 -08:00
Willem Melching
d193813036 Proper set -e in devel script + fix repo url
old-commit-hash: 0f2b1ea5f5
2020-02-10 14:47:36 -08:00
Willem Melching
3f374eac2c Harcoding folder name is fine
old-commit-hash: 6737ea2860
2020-02-10 14:46:01 -08:00
Willem Melching
2563cb10e1 Update release scripts
old-commit-hash: b645b1f278
2020-02-10 14:38:47 -08:00
Adeeb
559d3e4f50 use services.h in loggerd (#1056)
* loggerd: use services.h

* don't need yaml-cpp anymore

* forgot that

old-commit-hash: 0ad5715255
2020-02-06 10:56:01 -08:00
Willem Melching
2ea3171306 Removed old signed firmware during release build
old-commit-hash: a98000849e
2020-02-03 15:01:36 -08:00
Willem Melching
7ffcea6361 Cleanup files_common for phone release
old-commit-hash: e32e754a74
2020-02-03 14:41:43 -08:00
Willem Melching
39d2e34bee Only add the file list to the release
old-commit-hash: 0fb9971728
2020-02-03 14:11:23 -08:00
Willem Melching
0980219af5 Noqa on release build script
old-commit-hash: 2fe75cb7d0
2020-02-03 13:37:57 -08:00
Willem Melching
c55e1f88b9 Update release files
old-commit-hash: 0e1fc45bc3
2020-02-03 12:52:20 -08:00
Willem Melching
7022910555 Add pipfile to release files so CI can run
old-commit-hash: 77cb0b1464
2020-02-03 12:16:38 -08:00
ZwX1616
2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6
2020-01-30 19:12:44 -08:00
Willem Melching
cd0e49cad7 Add dockerfile to release files
old-commit-hash: 4d5957432e
2020-01-30 13:36:15 -08:00
Willem Melching
6bb37d61ed Fix source brnach in master-ci push
old-commit-hash: a2fe62ce77
2020-01-30 13:31:14 -08:00
Willem Melching
ca488d1ba0 Fix target branch on master release build
old-commit-hash: ada141e5e3
2020-01-30 13:21:04 -08:00
Willem Melching
6a6a1fbbab Jenkins pipeline to create master-ci (#1019)
* Added Jenkinsfile

* Added Jenkinsfile

* Added Jenkinsfile

* change order

* sudo

* whoami?

* Added Jenkinsfile

* install git

* Untested build scripts

* Add lockable resource

* Fix syntax

* Only one stage

* fix target dir

* Use deploy key

* noqa on test_openpilot

* Fix version.h path

* Cleanup release files

* Add linter scripts to release

* Update jenkinsfile

* Fix path

* this should work

* Use python3 docker container

* Run in correct directory

* Setup /data/pythonpath

Co-authored-by: commaci-public <60409688+commaci-public@users.noreply.github.com>

old-commit-hash: 0319861700
2020-01-30 13:06:45 -08:00
Willem Melching
c94c6e36c6 add default EON private key
old-commit-hash: 09a1691caf
2020-01-23 14:42:06 -08:00
Willem Melching
a7223b9d82 cleanup and make linting part of ci work
old-commit-hash: 7f813d23ce
2020-01-17 13:03:44 -08:00